Versions in this module Expand all Collapse all v1 v1.1.1 Oct 9, 2023 Changes in this version + const P256 + const P256K + const P384 + const P521 + func Curve(crv string) (elliptic.Curve, error) + func JWK2PrivateECDSA(j JWK) (privateKey *ecdsa.PrivateKey, err error) + func JWK2PublicECDSA(j JWK) (publicKey *ecdsa.PublicKey, err error) + func LoadECPrivateKeyFromJWKFile(location string) crypto.PrivateKey + func LoadECPublicKeyFromJWKFile(location string) crypto.PublicKey + type JWK struct + Alg string + Crv string + D string + E string + Kid string + Kty string + N string + Use string + X string + Y string + func NewECDSA(crv string) (*JWK, error) + func NewEthereum() (*JWK, error) + func NewFromBytes(b []byte) (k *JWK, err error) + func NewJWKFromFile(location string) (*JWK, error) + func (k *JWK) AsJSON() ([]byte, error) + func (k *JWK) String() (s string) + func (key *JWK) GetAlg() string + func (key *JWK) GetKid() string + func (key *JWK) GetPrivateKey() (privateKeyEC crypto.PrivateKey, err error) + func (key *JWK) GetPublicKey() (publicKeyEC crypto.PublicKey, err error) + func (key *JWK) PublicJWKKey() (publicKey *JWK)