VerifiableCredential object containing only the credentialSubject properties you want to reveal.
The CredentialDigestProof to update.
Options.
Optional
hasher?: HasherThe hashing function used to generate digests for nonce map. Should be the one used in creating the original credential.
This proof is added to a credential to prove that revealed properties were attested in the original credential. For each property to be revealed, it contains an unsalted hash of the statement plus a nonce which is required to verify against the salted hash in the credential. Statements and nonces are mapped to each other through the unsalted hashes.
Returns
Proof object that can be included in a Verifiable Credential / Verifiable Presentation's proof section.