Skip to main content

IIdentityWallet.generateCredentialMtp() method

Generates proof of credential inclusion / non-inclusion to the given claims tree and its root or to the current root of the Claims tree in the given Merkle tree storage.

Signature:

generateCredentialMtp(did: DID, credential: W3CCredential, treeState?: TreeState): Promise<MerkleTreeProofWithTreeState>;

Parameters

ParameterTypeDescription
didDIDissuer did
credentialW3CCredentialcredential to generate mtp
treeStateTreeState(Optional) tree state when to generate a proof

Returns:

Promise<MerkleTreeProofWithTreeState>

Promise<MerkleTreeProofWithTreeState> - MerkleTreeProof and TreeState on which proof has been generated