first commit

This commit is contained in:
linkitapps
2026-09-14 23:22:10 +09:00
commit 9f9c8fb69b
4207 changed files with 1333187 additions and 0 deletions
@@ -0,0 +1,13 @@
from cryptography.hazmat.primitives.asymmetric.ec import SECP256K1
from .._rfc7518.ec_key import ECKey
from .._rfc7518.jws_algs import ESAlgorithm
ES256K = ESAlgorithm("ES256K", "secp256k1", 256)
def register_secp256k1() -> None:
# https://tools.ietf.org/html/rfc8812#section-3.1
ECKey.binding.register_curve("secp256k1", SECP256K1)
__all__ = ["ES256K", "register_secp256k1"]