Skip to main content

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

ParameterTypeDescription
issuerDIDDIDissuer did
credentialsW3CCredential[]list of verifiable credentials to generate a proof
txIdstringtransaction hash in which state transition has been done
blockNumbernumber(Optional) block number in which state transition has been done
blockTimestampnumber(Optional) block timestamp in which state transition has been done

Returns:

Promise<W3CCredential[]>

Promise<W3CCredential[]> credentials with an Iden3SparseMerkleTreeProof