Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SignatureSuite ¶
type SignatureSuite interface { // GetCanonicalDocument will return normalized/canonical version of the document GetCanonicalDocument(doc map[string]interface{}, opts ...processor.Opts) ([]byte, error) // GetDigest returns document digest GetDigest(doc []byte) []byte // Verify will verify signature against public key Verify(pubKey *PublicKey, doc []byte, signature []byte) error // Accept registers this signature suite with the given signature type Accept(signatureType string) bool // CompactProof indicates weather to compact the proof doc before canonization CompactProof() bool }
SignatureSuite encapsulates signature suite methods required for signature verification.
Click to show internal directories.
Click to hide internal directories.