IMerkleTreeStorage.addToMerkleTree() method
This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
adds entry to merkle tree
Signature:
addToMerkleTree(identifier: string, mtType: MerkleTreeType, hindex: bigint, hvalue: bigint): Promise<void>;
Parameters
Parameter | Type | Description |
---|---|---|
identifier | string | identifier to which tree belongs |
mtType | MerkleTreeType | merkle tree type |
hindex | bigint | hash index |
hvalue | bigint | hash value |
Returns:
Promise<void>
Promise<void>