bbsblssignature2020

package
v0.1.6-0...-5c25bcb Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

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 New

func New(opts ...suite.Opt) *Suite

New an instance of Linked Data Signatures for JWS suite.

func (*Suite) Accept

func (s *Suite) Accept(t string) bool

Accept will accept only BbsBlsSignature2020 signature type.

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. BbsBlsSignature2020 signature suite uses RDF Dataset Normalization as canonicalization algorithm.

func (*Suite) GetDigest

func (s *Suite) GetDigest(doc []byte) []byte

GetDigest returns the doc itself as we would process N-Quads statements as messages to be signed/verified.

Jump to

Keyboard shortcuts

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