Documentation ¶
Index ¶
Constants ¶
View Source
const ( KeyType = "Ed25519VerificationKey2018" SignatureType = "Ed25519Signature2018" )
Variables ¶
This section is empty.
Functions ¶
func Canonicalize ¶
func GenerateProof ¶
GenerateProof takes in an unsigned document in byte array form, canonicalizes it, and appends a proof value with a nonce before signing the combination. The signature is added to the proof value, and the proof with signature is returned. This is in compliance with the Ed25519 2018 Linked Data Signature Suite.
func VerifyProof ¶
VerifyProof takes in an unsigned document in byte array form, canonicalizes it, and appends the provided proof value without the signature value set. Then the proof without signature is appended to the input. The result is verified using the provided public lib value.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.