The document secured by proof
(may contain additional proofs).
The data integrity proof to verify.
Options for the verification process.
Optional
challenge?: stringExpected challenge for the proof. Throws if mismatched.
Array of cryptographic suites to be used for verification; determines which proofs can be verified.
Optional
didImplementation of resolve
compliant with W3C DID specifications.
Additionally, this function returns an id-only DID document in the case where a DID has been deleted or upgraded.
If a DID is invalid or has not been registered, this is indicated by the error
property on the didResolutionMetadata
.
The DID to resolve.
The resolution options accepted by the resolve
function as specified in the W3C DID specifications.
The resolution result for the resolve
function as specified in the W3C DID specifications.
Optional
domain?: stringExpected domain for the proof. Throws if mismatched.
Optional
expectedExpected controller of the verification method. Throws if mismatched.
Optional
expectedExpected purpose of the proof. Throws if mismatched.
Optional
now?: DateThe reference time for verification as Date (default is current time).
Optional
tolerance?: numberThe allowed time drift in milliseconds for time-sensitive checks (default is 0).
Returns true if the verification is successful; otherwise, it returns false or throws an error.
Verifies integrity of a document secured by a data integrity proof (proof type: DataIntegrityProof). This function performs multiple checks to ensure the authenticity and correctness of the proof: