@did-btc1/cryptosuite / IDataIntegrityProof
Interface: IDataIntegrityProof
Defined in: data-integrity-proof/interface.ts:23
Interface representing a BIP-340 DataIntegrityProof. IDataIntegrityProof
Properties
cryptosuite
> cryptosuite: Cryptosuite
Defined in: data-integrity-proof/interface.ts:25
Methods
addProof()
> addProof(params
): Promise
<DidUpdateInvocation
>
Defined in: data-integrity-proof/interface.ts:34
Add a proof to a document.
Parameters
params
Parameters for adding a proof to a document.
Returns
Promise
<DidUpdateInvocation
>
A document with a proof added.
verifyProof()
> verifyProof(params
): Promise
<VerificationResult
>
Defined in: data-integrity-proof/interface.ts:46
Verify a proof.
Parameters
params
Parameters for verifying a proof.
Returns
Promise
<VerificationResult
>
The result of verifying the proof.