Documentation ¶
Index ¶
- func NewG2PublicKeyVerifier(nonce []byte) *verifier.PublicKeyVerifier
- type Suite
- func (s *Suite) Accept(t string) bool
- func (s *Suite) GetCanonicalDocument(doc map[string]interface{}, opts ...jsonld.ProcessorOpts) ([]byte, error)
- func (s *Suite) GetDigest(doc []byte) []byte
- func (s *Suite) SelectiveDisclosure(doc map[string]interface{}, revealDoc map[string]interface{}, ...) (map[string]interface{}, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewG2PublicKeyVerifier ¶
func NewG2PublicKeyVerifier(nonce []byte) *verifier.PublicKeyVerifier
NewG2PublicKeyVerifier creates a signature verifier that verifies a BbsBlsSignatureProof2020 signature taking Bls12381G2Key2020 public key bytes as input.
Types ¶
type Suite ¶
type Suite struct { suite.SignatureSuite // contains filtered or unexported fields }
Suite implements EcdsaSecp256k1Signature2019 signature suite.
func (*Suite) GetCanonicalDocument ¶
func (s *Suite) GetCanonicalDocument(doc map[string]interface{}, opts ...jsonld.ProcessorOpts) ([]byte, error)
GetCanonicalDocument will return normalized/canonical version of the document. EcdsaSecp256k1Signature2019 signature suite uses RDF Dataset Normalization as canonicalization algorithm.
func (*Suite) GetDigest ¶
GetDigest returns the doc itself as we would process N-Quads statements as messages to be signed/verified.
func (*Suite) SelectiveDisclosure ¶
func (s *Suite) SelectiveDisclosure(doc map[string]interface{}, revealDoc map[string]interface{}, pubKeyBytes, nonce []byte, opts ...jsonld.ProcessorOpts) (map[string]interface{}, error)
SelectiveDisclosure creates selective disclosure from the input doc which must have a BBS+ proof (with BbsBlsSignature2020 type).
Click to show internal directories.
Click to hide internal directories.