Documentation ¶
Overview ¶
Package ecdsasecp256k1signature2019 implements the EcdsaSecp256k1Signature2019 signature suite for the Linked Data Signatures specification (https://w3c-dvcg.github.io/lds-ecdsa-secp256k1-2019/). It uses the RDF Dataset Normalization Algorithm to transform the input document into its canonical form. It uses SHA-256 [RFC6234] as the message digest algorithm. Supported signature algorithms depend on the signer/verifier provided as options to the New().
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewPublicKeyVerifier ¶
func NewPublicKeyVerifier() *verifier.PublicKeyVerifier
NewPublicKeyVerifier creates a signature verifier that verifies a ECDSA secp256k1 signature taking Ed25519 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.