Documentation ¶
Overview ¶
Package ed25519signature2018 implements the Ed25519Signature2018 signature suite for the Linked Data Signatures [LD-SIGNATURES] specification. It uses the RDF Dataset Normalization Algorithm [RDF-DATASET-NORMALIZATION] to transform the input document into its canonical form. It uses SHA-256 [RFC6234] as the message digest algorithm and Ed25519 [ED25519] as the signature algorithm.
Index ¶
Constants ¶
const (
// SignatureType is the signature type for ed25519 keys.
SignatureType = "Ed25519Signature2018"
)
Variables ¶
This section is empty.
Functions ¶
func NewPublicKeyVerifier ¶
func NewPublicKeyVerifier() *verifier.PublicKeyVerifier
NewPublicKeyVerifier creates a signature verifier that verifies a Ed25519 signature taking Ed25519 public key bytes as input.
Types ¶
type Suite ¶
type Suite struct { suite.SignatureSuite // contains filtered or unexported fields }
Suite implements ed25519 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 Ed25519Signature2018 signature SignatureSuite uses RDF Dataset Normalization as canonicalization algorithm.