Skip to content
Lattice

ShieldedPool

Git Source

A shielded pool's storage.

APPEND-ONLY: new fields may only be added at the end.

struct ShieldedPool {
    IncrementalMerkleTreeLib.Tree commitments; // Poseidon LeanIMT of deposit commitments (+ root history)
    NullifierRegistryLib.Registry nullifiers; // spent withdrawal nullifier hashes
    address token; // the escrowed ERC-20
    uint256 denomination; // fixed deposit / withdraw amount
    address verifier; // the withdraw-circuit verifier
    bool exists;
}

Properties

NameTypeDescription
commitmentsIncrementalMerkleTreeLib.Tree
nullifiersNullifierRegistryLib.Registry
tokenaddress
denominationuint256
verifieraddress
existsbool