Skip to content
Lattice

SemaphoreStorage

Git Source

ERC-7201 namespaced storage for the Semaphore module.

APPEND-ONLY: new fields may only be added at the end to preserve the upgrade-safe layout.

Note:

  • storage-location: erc7201:lattice.storage.Semaphore
struct SemaphoreStorage {
    /// @dev group id => group state.
    mapping(uint256 groupId => Group group) groups;
    /// @dev Number of groups created (also the next group id).
    uint256 groupCount;
    /// @dev The Semaphore (Groth16) verifier contract.
    address verifier;
}

Properties

NameTypeDescription
groupsmapping(uint256 groupId => Group group)
groupCountuint256
verifieraddress