Object holding all function arguments.
Optional
challenge?: stringA challenge supplied by a verifier in a challenge-response protocol, which allows verifiers to assure signature freshness, preventing unauthorized re-use.
Optional
created?: null | DateA Date object indicating the date and time at which this proof becomes valid.
Defaults to the current time. Can be unset with null
.
Optional
cryptosuites?: readonly CryptoSuite<any, string, string>[]One or more cryptosuites that take care of processing and normalizing the document.
The actual suite used will be based on a match between algorithm
s supported by the signers
and the suite's requiredAlgorithm
.
An unsigned document. Any existing proofs will be overwritten.
Optional
domain?: stringA domain string to be included in the proof, if any.
Optional
expires?: DateA Date object indicating the date and time at which this proof expires.
Optional
id?: stringAssigns an id to the proof. Can be used to implement proof chains.
Optional
previousAllows referencing an existing proof by id for the purpose of implementing proof chains.
Optional
proofControls the proofPurpose
property and which verificationMethods can be used for signing.
Defaults to 'authentication'.
The DID or DID Document identifying the signing party. The DID Document will be resolved by this function if not passed in.
One or more signers associated with the signerDid
to be used for signing the document.
If omitted, the signing step is skipped.
The original document with a DataIntegrity signature proof attached.
Signs a document with a DID-related signer.