Documentation ¶
Index ¶
Constants ¶
View Source
const ( // ProofType for bbsblssignatureproof2020. ProofType = "BbsBlsSignatureProof2020" // VerificationMethodType for bbsblssignatureproof2020. VerificationMethodType = "Bls12381G2Key2020" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Proof ¶
type Proof struct {
// contains filtered or unexported fields
}
Proof implements BbsBlsSignatureProof2020 signature suite.
func (*Proof) GetCanonicalDocument ¶
func (s *Proof) GetCanonicalDocument(doc map[string]interface{}, opts ...processor.Opts) ([]byte, error)
GetCanonicalDocument will return normalized/canonical version of the document. BbsBlsSignatureProof2020 signature suite uses RDF Dataset Normalization as canonicalization algorithm.
func (*Proof) GetDigest ¶
GetDigest returns the doc itself as we would process N-Quads statements as messages to be signed/verified.
func (*Proof) SupportedVerificationMethods ¶
func (s *Proof) SupportedVerificationMethods() []proof.SupportedVerificationMethod
SupportedVerificationMethods returns list of verification methods supported by this proof type.
Click to show internal directories.
Click to hide internal directories.