Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Verifier ¶
type Verifier struct {
// contains filtered or unexported fields
}
Verifier verifies elliptic curve signatures.
func NewES256 ¶
func NewES256() *Verifier
NewES256 creates a new signature verifier that verifies a ECDSA P-256 signature taking public key bytes and JSON Web Key as input.
func NewES384 ¶
func NewES384() *Verifier
NewES384 creates a new signature verifier that verifies a ECDSA P-384 signature taking public key bytes and JSON Web Key as input.
func NewES521 ¶
func NewES521() *Verifier
NewES521 creates a new signature verifier that verifies a ECDSA P-521 signature taking public key bytes and JSON Web Key as input.
func NewSecp256k1 ¶
func NewSecp256k1() *Verifier
NewSecp256k1 creates a new signature verifier that verifies a ECDSA secp256k1 signature taking public key bytes and JSON Web Key as input.
func (*Verifier) SupportedKeyType ¶
SupportedKeyType checks if verifier supports given key.