Module merkle_with_history

Module merkle_with_history 

Source
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§

MerkleTreeWithHistory
Merkle Tree with root history for privacy-preserving transactions

Enums§

Error
MerkleDataKey
Storage keys for Merkle tree persistent data

Statics§

__SPEC_XDR_TYPE_MERKLEDATAKEY