Expand description
Merkle Tree with History Module
This module implements a fixed-depth binary Merkle tree with root history for privacy-preserving transactions. It uses the Poseidon2 hash function for ZK-circuit compatibility.
- Maintains a ring buffer of recent roots for membership proof verification
- Compatible with the ASP membership Merkle tree implementation
This module is designed to be used internally by the pool contract. Authorization should be handled by the calling main contract before invoking these functions.
Structs§
- Merkle
Tree With History - Merkle Tree with root history for privacy-preserving transactions
Enums§
- Error
- Merkle
Data Key - Storage keys for Merkle tree persistent data