Expand description
Sparse Merkle Tree utilities for WASM (no_std compatible)
Provides sparse merkle tree functionality using BTreeMap for no_std compatibility.
Equivalent functionality to circuits::test::utils::sparse_merkle_tree in
the circuit crate. But without std dependencies: Bigint and Hashmap
dependencies mostly. SMT interface.
Structs§
- Find
Result - Result of SMT find operation
- SMTResult
- Result of SMT operations (insert/update/delete)
- Sparse
Merkle Tree - Sparse Merkle Tree using BTreeMap for no_std compatibility
- Wasm
Find Result - Result of SMT find operation
- WasmSMT
Proof - SMT Proof for circuit inputs
- WasmSMT
Result - Result of SMT operations (insert/update/delete)
- Wasm
Sparse Merkle Tree - WASM-friendly Sparse Merkle Tree wrapper
Functions§
- smt_
hash_ leaf - Compute Poseidon2 hash for leaf nodes: hash(key, value, 1)
- smt_
hash_ pair - Compute Poseidon2 compression hash of two field elements