The unsecured document for which the proof needs to be created.
The cryptographic suite to use for creating the proof.
The signer interface to sign the document.
Optional parameters for the proof creation.
Optional challenge?: stringA challenge string to be included in the proof, if any.
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 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 proofThe purpose of the proof (default is 'authentication').
The original document augmented with the generated proof.
Creates a data integrity proof for the provided document. This function: