Creates an instance of CompactSparseMerkleTree.
Optional
root: FieldOptional
options: { hasher: The hash function to use, defaults to PoseidonHasherFunc; hashKey: whether to hash the key, the default is true; hashValue: whether to hash the value, the default is true.
Optional
hashOptional
hashOptional
hasher?: HasherCompactSparseMerkleTree
Protected
configProtected
keyProtected
rootProtected
storeProtected
thProtected
valueDelete a value from tree and return the new root of the tree.
{Promise
CompactSparseMerkleTree
Private
deletePrivate
doProtected
getGet the tree hasher used by the tree.
{TreeHasher<K, V>}
CompactSparseMerkleTree
Check if the key exists in the tree.
{Promise
CompactSparseMerkleTree
Create a merkle proof for a key against the current root.
{Promise
CompactSparseMerkleTree
Create a compacted merkle proof for a key against the current root.
{Promise
CompactSparseMerkleTree
Private
proveCreate an updatable Merkle proof for a key against the current root.
{Promise
CompactSparseMerkleTree
Private
sidePrivate
updatePrivate
updateStatic
importImport a compacted sparse merkle tree
Optional
options: { hasher: The hash function to use, defaults to PoseidonHasherFunc; hashKey: whether to hash the key, the default is true; hashValue: whether to hash the value, the default is true.
Optional
hashOptional
hashOptional
hasher?: Hasher{Promise<CompactSparseMerkleTree<K, V>>}
CompactSparseMerkleTree
Compact Sparse Merkle Tree
CompactSparseMerkleTree