Skip to content
Lattice

PlonkVerifierLib Constants

Git Source

PLONK_VERIFIER_ERC165_STORAGE_LOCATION

ERC-165 storage location (same across all Lattice modules). keccak256(abi.encode(uint256(keccak256("diamond.lib.storage.ERC165")) - 1)) & ~bytes32(uint256(0xff)).

bytes32 constant PLONK_VERIFIER_ERC165_STORAGE_LOCATION =
    0x9ca7f3e2e2bfb15fdf072b85dde92837cddacee6cf2f6b38cd06c9457c1c4200;

ERC165_MAP_IPLONKVERIFIER_SLOT

0x5d484314 is type(IPlonkVerifier).interfaceId. keccak256(abi.encode(bytes4(0x5d484314), 0x9ca7f3e2e2bfb15fdf072b85dde92837cddacee6cf2f6b38cd06c9457c1c4200)).

bytes32 constant ERC165_MAP_IPLONKVERIFIER_SLOT = 0xb1e78a1a6e11f30e01de857f602d74246da41ae3318d8e6afc2b73cc1cbe0ede;