Static checkReturns true if the value is in the tree and it is at the index from the key
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.
{boolean}
SMTUtils
Static checkReturns true if there is no value at the index from the key
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.
{boolean}
SMTUtils
Static compactCompact a proof to reduce its size
Optional hasher: Hasher = PoseidonHasherFunc{SparseCompactMerkleProof}
SMTUtils
Static computeCalculate new root based on sideNodes, key and value
Optional value: VOptional valueType: Provable<V>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.
{Field}
SMTUtils
Static decompactDecompact a proof
Optional hasher: Hasher = PoseidonHasherFunc{SparseMerkleProof}
SMTUtils
Static jsonConvert JSONValue to SparseCompactMerkleProof
{SparseCompactMerkleProof}
SMTUtils
Static sparseConvert SparseCompactMerkleProof to JSONValue.
{SparseCompactMerkleProofJSON}
SMTUtils
Static verifyStatic verifyVerify a merkle proof
Optional value: VOptional valueType: Provable<V>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.
{boolean}
SMTUtils
Collection of utility functions for sparse merkle tree
SMTUtils