Constructs an instance of Cryptosuite.
See CryptosuiteParams for required parameters to create a cryptosuite.
Optional
type?: "DataIntegrityProof"The algorithm used for canonicalization
The name of the cryptosuite
The multikey used to sign and verify proofs
The type of the proof
Create a proof for an insecure document.
See CreateProofParams for details.
The proof for the document.
Generate a hash of the canonical proof configuration and document.
See GenerateHashParams for details.
The hash string of the proof configuration and document.
Serialize the proof into a byte array.
See ProofSerializationParams for details.
The serialized proof.
Verify the proof by comparing the hash of the proof configuration and document to the proof bytes.
See ProofVerificationParams for details.
True if the proof is verified, false otherwise.
Constructs an instance of DataIntegrityProof from the current Cryptosuite instance.
A new DataIntegrityProof instance.
Transform a document (secure didUpdateInvocation or insecure didUpdatePayload) into canonical form.
See TransformDocumentParams for details.
The canonicalized document.
Verify a proof for a secure document. Implements ICryptosuite Method verifyProof.
The secure document to verify.
The result of the verification.
Implements 3.1 Instantiate Cryptosuite
The Instantiate Cryptosuite algorithm is used to configure a cryptographic suite to be used by the Add Proof and Verify Proof functions in Verifiable Credential Data Integrity 1.0. The algorithm takes an options object (map options) as input and returns a cryptosuite instance (struct cryptosuite).
Cryptosuite