Versions in this module Expand all Collapse all v1 v1.0.0 Dec 23, 2023 Changes in this version + const BBSPlusSignature2020 + const BBSPlusSignatureProof2020 + const BBSPlusSignatureSuiteCanonicalizationAlgorithm + const BBSPlusSignatureSuiteDigestAlgorithm + const BBSPlusSignatureSuiteID + const BBSPlusSignatureSuiteType + const BBSSecurityContext + const G1 + const G2 + func GetBBSPlusSignatureSuite() cryptosuite.CryptoSuite + type BBSPlusSignature2020Proof struct + Created string + Nonce string + ProofPurpose cryptosuite.ProofPurpose + ProofValue string + RequiredRevealStatements []int + Type cryptosuite.SignatureType + VerificationMethod string + func BBSPlusProofFromGenericProof(p crypto.Proof) (*BBSPlusSignature2020Proof, error) + func (b *BBSPlusSignature2020Proof) SetProofValue(proofValue string) + type BBSPlusSignatureProofSuite struct + func GetBBSPlusSignatureProofSuite() *BBSPlusSignatureProofSuite + func (BBSPlusSignatureProofSuite) CanonicalizationAlgorithm() string + func (BBSPlusSignatureProofSuite) Canonicalize(marshaled []byte) (*string, error) + func (BBSPlusSignatureProofSuite) Digest(tbd []byte) ([]byte, error) + func (BBSPlusSignatureProofSuite) ID() string + func (BBSPlusSignatureProofSuite) Marshal(data any) ([]byte, error) + func (BBSPlusSignatureProofSuite) MessageDigestAlgorithm() gocrypto.Hash + func (BBSPlusSignatureProofSuite) RequiredContexts() []string + func (BBSPlusSignatureProofSuite) SignatureAlgorithm() cryptosuite.SignatureType + func (BBSPlusSignatureProofSuite) Type() cryptosuite.LDKeyType + func (b BBSPlusSignatureProofSuite) CreateDeriveProof(inputProofDocument any, revealDocument map[string]any) (*DeriveProofResult, error) + func (b BBSPlusSignatureProofSuite) CreateVerifyHash(doc map[string]any, proof crypto.Proof, opts *cryptosuite.ProofOptions) ([]byte, error) + func (b BBSPlusSignatureProofSuite) SelectivelyDisclose(v BBSPlusVerifier, p cryptosuite.WithEmbeddedProof, ...) (map[string]any, error) + func (b BBSPlusSignatureProofSuite) Verify(v cryptosuite.Verifier, p cryptosuite.WithEmbeddedProof) error + type BBSPlusSignatureSuite struct + func (BBSPlusSignatureSuite) CanonicalizationAlgorithm() string + func (BBSPlusSignatureSuite) Canonicalize(marshaled []byte) (*string, error) + func (BBSPlusSignatureSuite) Digest(tbd []byte) ([]byte, error) + func (BBSPlusSignatureSuite) ID() string + func (BBSPlusSignatureSuite) Marshal(data any) ([]byte, error) + func (BBSPlusSignatureSuite) MessageDigestAlgorithm() gocrypto.Hash + func (BBSPlusSignatureSuite) RequiredContexts() []string + func (BBSPlusSignatureSuite) SignatureAlgorithm() cryptosuite.SignatureType + func (BBSPlusSignatureSuite) Type() cryptosuite.LDKeyType + func (b BBSPlusSignatureSuite) CreateVerifyHash(doc map[string]any, proof crypto.Proof, opts *cryptosuite.ProofOptions) ([]byte, error) + func (b BBSPlusSignatureSuite) Sign(s cryptosuite.Signer, p cryptosuite.WithEmbeddedProof) error + func (b BBSPlusSignatureSuite) Verify(v cryptosuite.Verifier, p cryptosuite.WithEmbeddedProof) error + type BBSPlusSigner struct + func NewBBSPlusSigner(kid string, privKey *bbs.PrivateKey, purpose cryptosuite.ProofPurpose) *BBSPlusSigner + func (*BBSPlusSigner) GetSignatureType() cryptosuite.SignatureType + func (*BBSPlusSigner) GetSigningAlgorithm() string + func (s *BBSPlusSigner) GetKeyID() string + func (s *BBSPlusSigner) GetPayloadFormat() cryptosuite.PayloadFormat + func (s *BBSPlusSigner) GetProofPurpose() cryptosuite.ProofPurpose + func (s *BBSPlusSigner) SetPayloadFormat(format cryptosuite.PayloadFormat) + func (s *BBSPlusSigner) SetProofPurpose(purpose cryptosuite.ProofPurpose) + func (s *BBSPlusSigner) Sign(tbs []byte) ([]byte, error) + type BBSPlusVerifier struct + func NewBBSPlusVerifier(kid string, pubKey *bbs.PublicKey) *BBSPlusVerifier + func (v BBSPlusVerifier) DeriveProof(messages [][]byte, sigBytes, nonce []byte, revealedIndexes []int) ([]byte, error) + func (v BBSPlusVerifier) GetKeyID() string + func (v BBSPlusVerifier) Verify(message, signature []byte) error + func (v BBSPlusVerifier) VerifyDerived(message, signature, nonce []byte) error + type BLSKey2020 struct + Controller string + ID string + PrivateKeyBase58 string + PublicKeyBase58 string + Type cryptosuite.LDKeyType + func GenerateBLSKey2020(keyType cryptosuite.LDKeyType) (*BLSKey2020, error) + func (b BLSKey2020) GetPrivateKey() (*bbs.PrivateKey, error) + func (b BLSKey2020) GetPublicKey() (*bbs.PublicKey, error) + type DeriveProofResult struct + InputProofDocumentStatements []string + RevealedDocument map[string]any + RevealedIndicies []int