Expand description
Merkle tree utilities using Poseidon2 hash
Provides merkle tree operations for use in ZK circuits. These functions match the Circom circuit implementations and produce identical roots/proofs.
Functionsยง
- merkle_
proof - Compute the Merkle path and path index bits for a given leaf index
- merkle_
root - Build a Merkle root from a full list of leaves
- poseidon2_
compression - Poseidon2 compression for merkle tree nodes