Documentation ¶
Index ¶
Constants ¶
View Source
const (
// SignatureType is the BbsBlsSignature2020 type string.
SignatureType = "BbsBlsSignature2020"
)
Variables ¶
This section is empty.
Functions ¶
func NewG2PublicKeyVerifier ¶
func NewG2PublicKeyVerifier() *verifier.PublicKeyVerifier
NewG2PublicKeyVerifier creates a signature verifier that verifies a BbsBlsSignature2020 signature taking Bls12381G2Key2020 public key bytes as input.
Types ¶
type Suite ¶
type Suite struct { suite.SignatureSuite // contains filtered or unexported fields }
Suite implements BbsBlsSignature2020 signature suite.
func (*Suite) GetCanonicalDocument ¶
func (s *Suite) GetCanonicalDocument(doc map[string]interface{}, opts ...processor.Opts) ([]byte, error)
GetCanonicalDocument will return normalized/canonical version of the document. BbsBlsSignature2020 signature suite uses RDF Dataset Normalization as canonicalization algorithm.
Click to show internal directories.
Click to hide internal directories.