bbs

package
v1.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 16, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type G2SignatureProofVerifier

type G2SignatureProofVerifier struct {
}

G2SignatureProofVerifier 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

func NewBBSG2SignatureProofVerifier() *G2SignatureProofVerifier

NewBBSG2SignatureProofVerifier creates a new BBSG2SignatureProofVerifier.

func (*G2SignatureProofVerifier) Verify

func (v *G2SignatureProofVerifier) Verify(signature, msg []byte, pubKeyValue *pubkey.PublicKey,
	proof *proof.Proof) error

Verify verifies the signature.

type G2SignatureVerifier

type G2SignatureVerifier struct {
}

G2SignatureVerifier 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

func NewBBSG2SignatureVerifier() *G2SignatureVerifier

NewBBSG2SignatureVerifier creates a new G2SignatureVerifier.

func (*G2SignatureVerifier) SupportedKeyType

func (sv *G2SignatureVerifier) SupportedKeyType(keyType kms.KeyType) bool

SupportedKeyType checks if verifier supports given key.

func (*G2SignatureVerifier) Verify

func (sv *G2SignatureVerifier) Verify(signature, msg []byte, pubKeyValue *pubkey.PublicKey) error

Verify verifies the signature.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL