Static
EMPTY_Empty value for sparse merkle tree
ProvableSMTUtils
Static
computeCalculate new root based on sideNodes, keyHashOrKeyField and valueHashOrValueField
Optional
hasher: Hasher = PoseidonHasherFunc{Field}
ProvableSMTUtils
Static
verifyVerify a merkle proof by root, keyHashOrKeyField and valueHashOrValueField
Optional
hasher: Hasher = PoseidonHasherFunc{Bool}
ProvableSMTUtils
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.
Optional
hasher?: Hasher{Bool}
ProvableSMTUtils
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.
Optional
hasher?: Hasher{Bool}
ProvableSMTUtils
Static
compute
Collection of utility functions for sparse merkle tree in the circuit.
ProvableSMTUtils