Creates an instance of DataIntegrityProof.
The cryptosuite to use for proof generation and verification.
Add a proof to a document.
Parameters for adding a proof to a document.
A document with a proof added.
Verify a proof.
Parameters for verifying a proof.
The document to verify.
Optional
expectedChallenge?: stringThe expected challenge of the proof.
Optional
expectedDomain?: string[]The expected domain of the proof.
The expected purpose of the proof.
Optional
mediaType?: stringThe media type of the document.
The result of verifying the proof.
Implements section 2.2.1 DataIntegrityProof of the Data Integrity BIP-340 Cryptosuite spec DataIntegrityProof