Documentation ¶
Index ¶
- type BBSG2SignatureProofVerifier
- type BBSG2SignatureVerifier
- type DocumentVerifier
- type ECDSASignatureVerifier
- type Ed25519SignatureVerifier
- type PublicKey
- type PublicKeyVerifier
- type PublicKeyVerifierOpt
- type RSAPS256SignatureVerifier
- type RSARS256SignatureVerifier
- type SignatureSuite
- type SignatureVerifier
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BBSG2SignatureProofVerifier ¶ added in v0.1.5
type BBSG2SignatureProofVerifier = verifier.BBSG2SignatureProofVerifier
BBSG2SignatureProofVerifier is a signature verifier that verifies a BBS+ Signature Proof taking Bls12381G2Key2020 public key bytes as input. The reference implementation https://github.com/mattrglobal/bls12381-key-pair supports public key bytes only, JWK is not supported.
func NewBBSG2SignatureProofVerifier ¶ added in v0.1.5
func NewBBSG2SignatureProofVerifier(nonce []byte) *BBSG2SignatureProofVerifier
NewBBSG2SignatureProofVerifier creates a new BBSG2SignatureProofVerifier.
type BBSG2SignatureVerifier ¶ added in v0.1.5
type BBSG2SignatureVerifier = verifier.BBSG2SignatureVerifier
BBSG2SignatureVerifier is a signature verifier that verifies a BBS+ Signature taking Bls12381G2Key2020 public key bytes as input. The reference implementation https://github.com/mattrglobal/bls12381-key-pair supports public key bytes only, JWK is not supported.
func NewBBSG2SignatureVerifier ¶ added in v0.1.5
func NewBBSG2SignatureVerifier() *BBSG2SignatureVerifier
NewBBSG2SignatureVerifier creates a new BBSG2SignatureVerifier.
type DocumentVerifier ¶
type DocumentVerifier = verifier.DocumentVerifier
DocumentVerifier implements JSON LD document proof verification.
func New ¶
func New(resolver keyResolver, suites ...SignatureSuite) (*DocumentVerifier, error)
New returns new instance of document verifier.
type ECDSASignatureVerifier ¶ added in v0.1.3
type ECDSASignatureVerifier = verifier.ECDSASignatureVerifier
ECDSASignatureVerifier verifies elliptic curve signatures.
func NewECDSAES256SignatureVerifier ¶ added in v0.1.3
func NewECDSAES256SignatureVerifier() *ECDSASignatureVerifier
NewECDSAES256SignatureVerifier creates a new signature verifier that verifies a ECDSA P-256 signature taking public key bytes and JSON Web Key as input.
func NewECDSAES384SignatureVerifier ¶ added in v0.1.3
func NewECDSAES384SignatureVerifier() *ECDSASignatureVerifier
NewECDSAES384SignatureVerifier creates a new signature verifier that verifies a ECDSA P-384 signature taking public key bytes and JSON Web Key as input.
func NewECDSAES521SignatureVerifier ¶ added in v0.1.3
func NewECDSAES521SignatureVerifier() *ECDSASignatureVerifier
NewECDSAES521SignatureVerifier creates a new signature verifier that verifies a ECDSA P-521 signature taking public key bytes and JSON Web Key as input.
func NewECDSASecp256k1SignatureVerifier ¶ added in v0.1.3
func NewECDSASecp256k1SignatureVerifier() *ECDSASignatureVerifier
NewECDSASecp256k1SignatureVerifier creates a new signature verifier that verifies a ECDSA secp256k1 signature taking public key bytes and JSON Web Key as input.
type Ed25519SignatureVerifier ¶ added in v0.1.3
type Ed25519SignatureVerifier = verifier.Ed25519SignatureVerifier
Ed25519SignatureVerifier verifies a Ed25519 signature taking Ed25519 public key bytes as input.
func NewEd25519SignatureVerifier ¶ added in v0.1.3
func NewEd25519SignatureVerifier() *Ed25519SignatureVerifier
NewEd25519SignatureVerifier creates a new Ed25519SignatureVerifier.
type PublicKeyVerifier ¶ added in v0.1.3
type PublicKeyVerifier = verifier.PublicKeyVerifier
PublicKeyVerifier makes signature verification using the public key based on one or several signature algorithms.
func NewCompositePublicKeyVerifier ¶ added in v0.1.3
func NewCompositePublicKeyVerifier(verifiers []SignatureVerifier, opts ...PublicKeyVerifierOpt) *PublicKeyVerifier
NewCompositePublicKeyVerifier creates a new PublicKeyVerifier based on one or more signature algorithms.
func NewPublicKeyVerifier ¶ added in v0.1.3
func NewPublicKeyVerifier(sigAlg SignatureVerifier, opts ...PublicKeyVerifierOpt) *PublicKeyVerifier
NewPublicKeyVerifier creates a new PublicKeyVerifier based on single signature algorithm.
type PublicKeyVerifierOpt ¶ added in v0.1.3
type PublicKeyVerifierOpt = verifier.PublicKeyVerifierOpt
PublicKeyVerifierOpt is the PublicKeyVerifier functional option.
func WithExactPublicKeyType ¶ added in v0.1.3
func WithExactPublicKeyType(jwkType string) PublicKeyVerifierOpt
WithExactPublicKeyType option is used to check the type of the PublicKey.
type RSAPS256SignatureVerifier ¶ added in v0.1.3
type RSAPS256SignatureVerifier = verifier.RSAPS256SignatureVerifier
RSAPS256SignatureVerifier verifies a Ed25519 signature taking RSA public key bytes as input.
func NewRSAPS256SignatureVerifier ¶ added in v0.1.3
func NewRSAPS256SignatureVerifier() *RSAPS256SignatureVerifier
NewRSAPS256SignatureVerifier creates a new RSAPS256SignatureVerifier.
type RSARS256SignatureVerifier ¶ added in v0.1.9
type RSARS256SignatureVerifier = verifier.RSARS256SignatureVerifier
RSARS256SignatureVerifier verifies a Ed25519 signature taking RSA public key bytes as input.
func NewRSARS256SignatureVerifier ¶ added in v0.1.9
func NewRSARS256SignatureVerifier() *RSARS256SignatureVerifier
NewRSARS256SignatureVerifier creates a new RSARS256SignatureVerifier.
type SignatureSuite ¶ added in v0.1.3
type SignatureSuite = api.SignatureSuite
SignatureSuite encapsulates signature suite methods required for signature verification.
type SignatureVerifier ¶ added in v0.1.3
type SignatureVerifier = verifier.SignatureVerifier
SignatureVerifier make signature verification of a certain algorithm (e.g. Ed25519 or ECDSA secp256k1).