Static
EMPTY_Empty value for merkle tree
ProvableMerkleTreeUtils
Static
MerkleCreate a meerkle proof circuit value type based on the specified tree height.
{typeof BaseMerkleProof}
ProvableMerkleTreeUtils
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; hashValue: whether to hash the value, the default is true.
Optional
hasher?: Hasher{Bool}
ProvableMerkleTreeUtils
Static
checkReturns true if there is no value at the index from the key
Optional
hasher: Hasher = PoseidonHasherFunc{Bool}
ProvableMerkleTreeUtils
Static
computeCalculate new root based on index and value.
Optional
options: { hasher: The hash function to use, defaults to PoseidonHasherFunc; hashValue: whether to hash the value, the default is true.
Optional
hasher?: Hasher{Field}
ProvableMerkleTreeUtils
Collection of utility functions for merkle tree in the circuit.
ProvableMerkleTreeUtils