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
| Parameter | Type | Description |
|---|---|---|
| did | DID | issuer did |
| credential | W3CCredential | credential to generate mtp |
| treeState | TreeState | (Optional) tree state when to generate a proof |
Returns:
Promise<MerkleTreeProofWithTreeState>
Promise<MerkleTreeProofWithTreeState> - MerkleTreeProof and TreeState on which proof has been generated