- Preparing search index...
- The search index is not available
snarky-smt
Methods
Static
checkMembership
- checkMembership<K, V>(proof: CompactSparseMerkleProof, expectedRoot: Field, key: K, keyType: Provable<K>, value: V, valueType: Provable<V>, options??: {
hashKey: boolean;
hashValue: boolean;
treeHasher: TreeHasher<K, V>;
}): Bool
-
Parameters
-
-
expectedRoot: Field
-
key: K
-
keyType: Provable<K>
-
value: V
-
valueType: Provable<V>
-
Optional
options: {
hashKey: boolean;
hashValue: boolean;
treeHasher: TreeHasher<K, V>;
} = ...
-
hashKey: boolean
-
hashValue: boolean
-
Returns Bool
Static
checkNonMembership
- checkNonMembership<K, V>(proof: CompactSparseMerkleProof, expectedRoot: Field, key: K, keyType: Provable<K>, options??: {
hashKey: boolean;
treeHasher: TreeHasher<K, V>;
}): Bool
-
Parameters
-
-
expectedRoot: Field
-
key: K
-
keyType: Provable<K>
-
Optional
options: {
hashKey: boolean;
treeHasher: TreeHasher<K, V>;
} = ...
Returns Bool
Collection of utility functions for compact sparse merkle tree in the circuit.