Module merkle

Module merkle 

Source
Expand description

Merkle tree utilities for proof generation

Provides merkle tree operations matching the Circom circuit implementations. Core merkle functions are re-exported from circuits::core::merkle.

Structs§

MerkleProof
Merkle proof data returned to JavaScript
MerkleTree
Simple Merkle tree for proof generation

Functions§

compute_merkle_root
Compute merkle root from leaves
merkle_proof_internal
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