IIdentityWallet.generateIden3SparseMerkleTreeProof() method
Generate Iden3SparseMerkleTree proof of inclusion to issuer state of specific credentials
Signature:
generateIden3SparseMerkleTreeProof(issuerDID: DID, credentials: W3CCredential[], txId: string, blockNumber?: number, blockTimestamp?: number): Promise<W3CCredential[]>;
Parameters
Parameter | Type | Description |
---|---|---|
issuerDID | DID | issuer did |
credentials | W3CCredential[] | list of verifiable credentials to generate a proof |
txId | string | transaction hash in which state transition has been done |
blockNumber | number | (Optional) block number in which state transition has been done |
blockTimestamp | number | (Optional) block timestamp in which state transition has been done |
Returns:
Promise<W3CCredential[]>
Promise<W3CCredential[]>
credentials with an Iden3SparseMerkleTreeProof