false
true
0

Contract Address Details

0x1DBBcc0bC25De5f6ae122fb0009B3eE4931Fd958

Contract Name
BeaconLightClient
Creator
0xf71cba–f75eac at 0xb34487–ba0755
Balance
0 tPLS
Tokens
Fetching tokens...
Transactions
Fetching transactions...
Transfers
Fetching transfers...
Gas Used
Fetching gas used...
Last Balance Update
26048670
Warning! Contract bytecode has been changed and doesn't match the verified one. Therefore, interaction with this smart contract may be risky.
Contract name:
BeaconLightClient




Optimization enabled
false
Compiler version
v0.8.28+commit.7893614a




EVM Version




Verified at
2026-11-19T13:51:08.021224Z

Constructor Arguments

000000000000000000000000b01856abef5b971019f1d25630450cc6bcbafb21000854b9b72ab6bfca191c95cb131971a17a458c2faebdd216d9dbe874eb4730d8ea171f3c94aea21ebc42a1ed61052acf3f9209c00e4efbaaddac09ed9b807800000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000062b07d60000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000aee980456999d834141b9ab1d1339332bb85d899afcd682de58f009a6d6efc45b3d547a2837f9a03c83a3923d07d0c390e8c2e03c1aa44bf5d6e27405c3d4df46b2c53d284387717d1acc14c7478298cdcacbfd529c1a7f609481776eb650e2f0b6007

Arg [0] (address) : 0xb01856abef5b971019f1d25630450cc6bcbafb21
Arg [1] (bytes32) : 000854b9b72ab6bfca191c95cb131971a17a458c2faebdd216d9dbe874eb4730
Arg [2] (bytes32) : d8ea171f3c94aea21ebc42a1ed61052acf3f9209c00e4efbaaddac09ed9b8078
Arg [3] (uint64) : 8192
Arg [4] (uint64) : 1655733600
Arg [5] (uint64) : 12
Arg [6] (uint64) : 11463040
Arg [7] (bytes32) : 456999d834141b9ab1d1339332bb85d899afcd682de58f009a6d6efc45b3d547
Arg [8] (bytes32) : a2837f9a03c83a3923d07d0c390e8c2e03c1aa44bf5d6e27405c3d4df46b2c53
Arg [9] (bytes32) : d284387717d1acc14c7478298cdcacbfd529c1a7f609481776eb650e2f0b6007

              

src/hardened/BeaconLightClient.sol

// SPDX-License-Identifier: MIT
pragma solidity 0.8.28;

import {ISP1Verifier} from "./ISP1Verifier.sol";
import {IBeaconLightClient} from "./IBeaconLightClient.sol";
import {BeaconClock} from "./BeaconClock.sol";

/// @title BeaconLightClient
/// @notice Tracks the finalized beacon chain of one source chain with zero-knowledge proofs of the
/// Altair light-client protocol. It follows the shape of the Succinct SP1 Helios contract.
/// @dev Every past head stays stored forever, because withdrawals use it as an anchor. A head may jump any distance:
/// the program folds 1 to 64 updates into one proof, and the vault proves an old deposit through
/// `state.historical_summaries` when the anchor is more than 8192 slots away.
/// One proof check per update, whatever the committee size, because the contract stores only
/// committee hashes. The contract has no owner, no upgrade path, and no pause.
contract BeaconLightClient is IBeaconLightClient {
    /// @notice The public values of the light-client program, in `abi.encode` order.
    struct LightClientOutput {
        bytes32 genesisValidatorsRoot;
        bytes32 previousHeaderRoot;
        uint64 previousHeadSlot;
        bytes32 previousSyncCommitteeHash;
        bytes32 startNextSyncCommitteeHash;
        bytes32 newHeaderRoot;
        uint64 newHeadSlot;
        bytes32 executionBlockHash;
        uint64 executionBlockNumber;
        bytes32 syncCommitteeHash;
        bytes32 nextSyncCommitteeHash;
    }

    /// @dev Both fields share one storage slot.
    struct FinalizedBlock {
        bool finalized;
        uint64 number;
    }

    /// @notice The size of the encoded output: eleven static words.
    uint256 public constant PUBLIC_VALUES_LENGTH = 352;

    /// @notice A constructor argument is zero.
    error ZeroValue(string name);
    /// @notice The public values do not have the length of an encoded `LightClientOutput`.
    error InvalidPublicValuesLength(uint256 actual);
    /// @notice The output belongs to another chain (cross-chain replay).
    error GenesisValidatorsRootMismatch(bytes32 expected, bytes32 actual);
    /// @notice The output builds on another head slot than the stored head.
    error PreviousHeadSlotMismatch(uint64 expected, uint64 actual);
    /// @notice The output builds on another header root than the stored one.
    error PreviousHeaderRootMismatch(bytes32 expected, bytes32 actual);
    /// @notice The output builds on another committee than the stored one.
    error PreviousSyncCommitteeMismatch(bytes32 expected, bytes32 actual);
    /// @notice The output starts from another next committee than the stored one (zero equals zero). This binds the
    /// private starting store of the program, so a caller cannot invent a starting next committee.
    error StartNextSyncCommitteeMismatch(bytes32 expected, bytes32 actual);
    /// @notice The new head slot is not past the stored head.
    error HeadNotAdvancing(uint64 head, uint64 newHeadSlot);
    /// @notice The new head slot is later than the current slot, which `block.timestamp` implies.
    error HeadInFuture(uint64 newHeadSlot, uint64 currentSlot);
    /// @notice The new header root is zero.
    error EmptyHeaderRoot();
    /// @notice The execution block hash is zero.
    error EmptyExecutionBlockHash();
    /// @notice The committee hash of the new head is zero. The program never outputs a zero committee.
    error EmptySyncCommitteeHash();
    /// @notice The committee in the output differs from the stored committee for its period.
    error SyncCommitteeMismatch(bytes32 expected, bytes32 actual);
    /// @notice The next committee differs from the stored next committee.
    error NextSyncCommitteeMismatch(bytes32 expected, bytes32 actual);

    /// @notice Emitted when the head moves forward.
    event HeadUpdated(uint64 indexed slot, bytes32 indexed headerRoot, bytes32 indexed executionBlockHash);

    /// @notice The proof system that checks light-client proofs.
    /// @dev Pass a specific verifier contract for the proof system and version, never Succinct's ownable gateway.
    /// The gateway owner can add and remove verifiers, which would give one key power over this contract.
    ISP1Verifier public immutable verifier;
    /// @notice The verification key of the light-client program.
    bytes32 public immutable programVKey;
    /// @notice The genesis validators root of the tracked chain. It binds the contract to one chain.
    bytes32 public immutable genesisValidatorsRoot;
    /// @notice The number of slots in a sync committee period.
    uint64 public immutable slotsPerPeriod;
    /// @notice The genesis time of the tracked beacon chain, in seconds.
    uint64 public immutable genesisTime;
    /// @notice The seconds per slot of the tracked beacon chain.
    uint64 public immutable secondsPerSlot;

    /// @notice The slot of the latest finalized header.
    uint64 public head;
    /// @notice Finalized beacon header roots by slot.
    mapping(uint64 slot => bytes32 headerRoot) public override headers;
    /// @notice Sync committee hashes by period.
    mapping(uint64 period => bytes32 committeeHash) public syncCommittees;

    /// @notice The execution block hash of each stored head, by slot. Vault layout checks compare against it.
    mapping(uint64 slot => bytes32 blockHash) public override executionBlockHashes;

    mapping(bytes32 blockHash => FinalizedBlock) private _finalizedBlocks;

    /// @param verifier_ A specific SP1 verifier contract. It is not the ownable gateway.
    /// @param programVKey_ The verification key of the light-client program.
    /// @param genesisValidatorsRoot_ The genesis validators root of the tracked chain.
    /// @param slotsPerPeriod_ Slots per sync committee period (8192 on Ethereum and PulseChain).
    /// @param genesisTime_ Genesis time of the tracked beacon chain, in seconds. It bounds the head by the clock.
    /// @param secondsPerSlot_ Seconds per slot of the tracked beacon chain.
    /// @param initialSlot The slot of the trusted checkpoint.
    /// @param initialHeaderRoot The header root of the trusted checkpoint.
    /// @param initialSyncCommitteeHash The committee hash for the period of the checkpoint.
    /// @param initialNextSyncCommitteeHash The committee hash for the next period, or zero.
    constructor(
        address verifier_,
        bytes32 programVKey_,
        bytes32 genesisValidatorsRoot_,
        uint64 slotsPerPeriod_,
        uint64 genesisTime_,
        uint64 secondsPerSlot_,
        uint64 initialSlot,
        bytes32 initialHeaderRoot,
        bytes32 initialSyncCommitteeHash,
        bytes32 initialNextSyncCommitteeHash
    ) {
        if (verifier_ == address(0)) revert ZeroValue("verifier");
        if (programVKey_ == bytes32(0)) revert ZeroValue("programVKey");
        if (genesisValidatorsRoot_ == bytes32(0)) revert ZeroValue("genesisValidatorsRoot");
        if (slotsPerPeriod_ == 0) revert ZeroValue("slotsPerPeriod");
        if (genesisTime_ == 0) revert ZeroValue("genesisTime");
        if (secondsPerSlot_ == 0) revert ZeroValue("secondsPerSlot");
        if (initialSlot == 0) revert ZeroValue("initialSlot");
        if (initialHeaderRoot == bytes32(0)) revert ZeroValue("initialHeaderRoot");
        if (initialSyncCommitteeHash == bytes32(0)) revert ZeroValue("initialSyncCommitteeHash");

        verifier = ISP1Verifier(verifier_);
        programVKey = programVKey_;
        genesisValidatorsRoot = genesisValidatorsRoot_;
        slotsPerPeriod = slotsPerPeriod_;
        genesisTime = genesisTime_;
        secondsPerSlot = secondsPerSlot_;

        uint64 period = initialSlot / slotsPerPeriod_;
        head = initialSlot;
        headers[initialSlot] = initialHeaderRoot;
        syncCommittees[period] = initialSyncCommitteeHash;
        syncCommittees[period + 1] = initialNextSyncCommitteeHash;
    }

    /// @notice Moves the head to a newer finalized header, given a proof of the light-client program.
    /// @dev Anyone can call it. The checks run in a fixed order, and the proof check comes last.
    /// @param proof The SP1 proof.
    /// @param publicValues The `abi.encode` of a `LightClientOutput`.
    function update(bytes calldata proof, bytes calldata publicValues) external {
        if (publicValues.length != PUBLIC_VALUES_LENGTH) revert InvalidPublicValuesLength(publicValues.length);
        LightClientOutput memory output = abi.decode(publicValues, (LightClientOutput));

        _requireStoredStart(output);
        bool writesNewCommittee = _requireProgress(output);

        verifier.verifyProof(programVKey, publicValues, proof);

        head = output.newHeadSlot;
        headers[output.newHeadSlot] = output.newHeaderRoot;
        executionBlockHashes[output.newHeadSlot] = output.executionBlockHash;
        _finalizedBlocks[output.executionBlockHash] =
            FinalizedBlock({finalized: true, number: output.executionBlockNumber});
        uint64 newPeriod = output.newHeadSlot / slotsPerPeriod;
        // Rule 4: a crossing into a period with no stored committee writes it. The program proved the chain of
        // handoffs from the bound start (`previousSyncCommitteeHash` and `startNextSyncCommitteeHash`).
        if (writesNewCommittee) syncCommittees[newPeriod] = output.syncCommitteeHash;
        // Rule 5: the next slot is written only when the program proved a next committee and the slot is still empty.
        if (output.nextSyncCommitteeHash != bytes32(0) && syncCommittees[newPeriod + 1] == bytes32(0)) {
            syncCommittees[newPeriod + 1] = output.nextSyncCommitteeHash;
        }

        emit HeadUpdated(output.newHeadSlot, output.newHeaderRoot, output.executionBlockHash);
    }

    /// @notice Whether the execution block hash sits in a finalized beacon header.
    /// @param blockHash The execution block hash.
    function isFinalizedExecutionBlock(bytes32 blockHash) external view returns (bool) {
        return _finalizedBlocks[blockHash].finalized;
    }

    /// @notice The block number of a finalized execution block, or zero when it is not finalized.
    /// @param blockHash The execution block hash.
    function executionBlockNumber(bytes32 blockHash) external view returns (uint64) {
        return _finalizedBlocks[blockHash].number;
    }

    /// @notice The sync committee period of a slot.
    /// @param slot The beacon slot.
    function periodOf(uint64 slot) public view returns (uint64) {
        return slot / slotsPerPeriod;
    }

    /// @dev The genesis validators root and the starting store. Rule 1: the output names the stored head, header root,
    /// committee and next committee (zero equals zero), so the private starting store of the program is bound.
    function _requireStoredStart(LightClientOutput memory output) private view {
        if (output.genesisValidatorsRoot != genesisValidatorsRoot) {
            revert GenesisValidatorsRootMismatch(genesisValidatorsRoot, output.genesisValidatorsRoot);
        }
        uint64 currentHead = head;
        if (output.previousHeadSlot != currentHead) {
            revert PreviousHeadSlotMismatch(currentHead, output.previousHeadSlot);
        }
        bytes32 currentHeaderRoot = headers[currentHead];
        if (output.previousHeaderRoot != currentHeaderRoot) {
            revert PreviousHeaderRootMismatch(currentHeaderRoot, output.previousHeaderRoot);
        }
        uint64 headPeriod = currentHead / slotsPerPeriod;
        bytes32 currentCommittee = syncCommittees[headPeriod];
        if (output.previousSyncCommitteeHash != currentCommittee) {
            revert PreviousSyncCommitteeMismatch(currentCommittee, output.previousSyncCommitteeHash);
        }
        bytes32 currentNextCommittee = syncCommittees[headPeriod + 1];
        if (output.startNextSyncCommitteeHash != currentNextCommittee) {
            revert StartNextSyncCommitteeMismatch(currentNextCommittee, output.startNextSyncCommitteeHash);
        }
    }

    /// @dev Rules 2 to 5, the checks on the new head. Rule 2a is the clock bound. Returns whether the caller must write
    /// the committee of the new period (rule 4, empty slot).
    function _requireProgress(LightClientOutput memory output) private view returns (bool writesNewCommittee) {
        uint64 currentHead = head;
        // Rule 2: the head only moves forward. There is no jump cap.
        if (output.newHeadSlot <= currentHead) revert HeadNotAdvancing(currentHead, output.newHeadSlot);
        // Rule 2a: the head is not later than the current slot. The program has no clock, so only the contract can
        // refuse a head from the future. Without the rule, a head far ahead would block every honest update for good.
        uint64 currentSlot = BeaconClock.slotAt(block.timestamp, genesisTime, secondsPerSlot);
        if (output.newHeadSlot > currentSlot) revert HeadInFuture(output.newHeadSlot, currentSlot);
        if (output.newHeaderRoot == bytes32(0)) revert EmptyHeaderRoot();
        if (output.executionBlockHash == bytes32(0)) revert EmptyExecutionBlockHash();
        uint64 newPeriod = output.newHeadSlot / slotsPerPeriod;
        writesNewCommittee = _requireNewCommittee(currentHead / slotsPerPeriod, newPeriod, output.syncCommitteeHash);
        _requireNextCommitteeConsistent(newPeriod, output.nextSyncCommitteeHash);
    }

    /// @dev Rules 3 and 4. In the head period the output must equal the stored committee. In a later period it must
    /// equal the stored committee when one is stored. When the slot is empty the function reports that the caller must
    /// write it: the folded program proved the handoffs from a start that rules 1 bound to stored values.
    /// A zero committee hash is refused, because writing zero would leave the new head with no committee.
    /// `periodOf` is the only source of a period; the caller names none.
    function _requireNewCommittee(uint64 headPeriod, uint64 newPeriod, bytes32 committeeHash)
        private
        view
        returns (bool writesNewCommittee)
    {
        if (committeeHash == bytes32(0)) revert EmptySyncCommitteeHash();
        bytes32 stored = syncCommittees[newPeriod];
        if (newPeriod > headPeriod && stored == bytes32(0)) return true;
        if (stored != committeeHash) revert SyncCommitteeMismatch(stored, committeeHash);
        return false;
    }

    /// @dev A non-zero next committee must equal the stored next committee when one is stored. A zero value changes
    /// nothing. The contract relies on the program to output a non-zero value only when that update proves it from the
    /// attested state (the program's rule: no carried values).
    function _requireNextCommitteeConsistent(uint64 newPeriod, bytes32 nextCommitteeHash) private view {
        if (nextCommitteeHash == bytes32(0)) return;
        bytes32 storedNext = syncCommittees[newPeriod + 1];
        if (storedNext == bytes32(0)) return;
        if (storedNext != nextCommitteeHash) revert NextSyncCommitteeMismatch(storedNext, nextCommitteeHash);
    }
}
        

src/hardened/IBeaconLightClient.sol

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.24;

/// @title IBeaconLightClient
/// @notice The part of the light client that the vault reads.
interface IBeaconLightClient {
    /// @notice The finalized beacon header root stored for a slot, or zero.
    /// @param slot The beacon slot.
    function headers(uint64 slot) external view returns (bytes32);

    /// @notice The execution block hash stored for the head at a slot, or zero.
    /// @param slot The beacon slot.
    function executionBlockHashes(uint64 slot) external view returns (bytes32);

    /// @notice Whether the execution block hash sits in a finalized beacon header.
    /// @param blockHash The execution block hash.
    function isFinalizedExecutionBlock(bytes32 blockHash) external view returns (bool);
}
          

src/hardened/BeaconClock.sol

// SPDX-License-Identifier: MIT
pragma solidity 0.8.28;

/// @title BeaconClock
/// @notice The slot that a timestamp falls in, on one beacon chain. The deposit gate and the light client share it,
/// so both read the clock with the same formula.
library BeaconClock {
    /// @notice The slot at `timestamp`, or zero when the timestamp is before genesis.
    /// @param timestamp The time in seconds.
    /// @param genesisTime The genesis time of the beacon chain, in seconds. It must not be zero.
    /// @param secondsPerSlot The seconds per slot of the beacon chain. It must not be zero.
    function slotAt(uint256 timestamp, uint64 genesisTime, uint64 secondsPerSlot) internal pure returns (uint64) {
        if (timestamp < genesisTime) return 0;
        return uint64((timestamp - genesisTime) / secondsPerSlot);
    }
}
          

src/hardened/ISP1Verifier.sol

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.24;

/// @title ISP1Verifier
/// @notice The shape of the Succinct SP1 verifier gateway.
/// @dev The call reverts when the proof is invalid and returns nothing when it is valid.
interface ISP1Verifier {
    /// @notice Verifies an SP1 proof.
    /// @param programVKey The verification key of the program that produced the proof.
    /// @param publicValues The public values that the program committed.
    /// @param proofBytes The encoded proof.
    function verifyProof(bytes32 programVKey, bytes calldata publicValues, bytes calldata proofBytes) external view;
}
          

Compiler Settings

{"viaIR":false,"remappings":["@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/","forge-std/=lib/forge-std/src/","erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/","halmos-cheatcodes/=lib/openzeppelin-contracts/lib/halmos-cheatcodes/src/","openzeppelin-contracts/=lib/openzeppelin-contracts/"],"outputSelection":{"*":{"*":["abi","evm.bytecode","evm.deployedBytecode"]}},"optimizer":{"runs":200,"enabled":true},"metadata":{"useLiteralContent":false,"bytecodeHash":"none","appendCBOR":false},"libraries":{},"evmVersion":"shanghai"}
              

Contract ABI

[{"type":"constructor","stateMutability":"nonpayable","inputs":[{"type":"address","name":"verifier_","internalType":"address"},{"type":"bytes32","name":"programVKey_","internalType":"bytes32"},{"type":"bytes32","name":"genesisValidatorsRoot_","internalType":"bytes32"},{"type":"uint64","name":"slotsPerPeriod_","internalType":"uint64"},{"type":"uint64","name":"genesisTime_","internalType":"uint64"},{"type":"uint64","name":"secondsPerSlot_","internalType":"uint64"},{"type":"uint64","name":"initialSlot","internalType":"uint64"},{"type":"bytes32","name":"initialHeaderRoot","internalType":"bytes32"},{"type":"bytes32","name":"initialSyncCommitteeHash","internalType":"bytes32"},{"type":"bytes32","name":"initialNextSyncCommitteeHash","internalType":"bytes32"}]},{"type":"error","name":"EmptyExecutionBlockHash","inputs":[]},{"type":"error","name":"EmptyHeaderRoot","inputs":[]},{"type":"error","name":"EmptySyncCommitteeHash","inputs":[]},{"type":"error","name":"GenesisValidatorsRootMismatch","inputs":[{"type":"bytes32","name":"expected","internalType":"bytes32"},{"type":"bytes32","name":"actual","internalType":"bytes32"}]},{"type":"error","name":"HeadInFuture","inputs":[{"type":"uint64","name":"newHeadSlot","internalType":"uint64"},{"type":"uint64","name":"currentSlot","internalType":"uint64"}]},{"type":"error","name":"HeadNotAdvancing","inputs":[{"type":"uint64","name":"head","internalType":"uint64"},{"type":"uint64","name":"newHeadSlot","internalType":"uint64"}]},{"type":"error","name":"InvalidPublicValuesLength","inputs":[{"type":"uint256","name":"actual","internalType":"uint256"}]},{"type":"error","name":"NextSyncCommitteeMismatch","inputs":[{"type":"bytes32","name":"expected","internalType":"bytes32"},{"type":"bytes32","name":"actual","internalType":"bytes32"}]},{"type":"error","name":"PreviousHeadSlotMismatch","inputs":[{"type":"uint64","name":"expected","internalType":"uint64"},{"type":"uint64","name":"actual","internalType":"uint64"}]},{"type":"error","name":"PreviousHeaderRootMismatch","inputs":[{"type":"bytes32","name":"expected","internalType":"bytes32"},{"type":"bytes32","name":"actual","internalType":"bytes32"}]},{"type":"error","name":"PreviousSyncCommitteeMismatch","inputs":[{"type":"bytes32","name":"expected","internalType":"bytes32"},{"type":"bytes32","name":"actual","internalType":"bytes32"}]},{"type":"error","name":"StartNextSyncCommitteeMismatch","inputs":[{"type":"bytes32","name":"expected","internalType":"bytes32"},{"type":"bytes32","name":"actual","internalType":"bytes32"}]},{"type":"error","name":"SyncCommitteeMismatch","inputs":[{"type":"bytes32","name":"expected","internalType":"bytes32"},{"type":"bytes32","name":"actual","internalType":"bytes32"}]},{"type":"error","name":"ZeroValue","inputs":[{"type":"string","name":"name","internalType":"string"}]},{"type":"event","name":"HeadUpdated","inputs":[{"type":"uint64","name":"slot","internalType":"uint64","indexed":true},{"type":"bytes32","name":"headerRoot","internalType":"bytes32","indexed":true},{"type":"bytes32","name":"executionBlockHash","internalType":"bytes32","indexed":true}],"anonymous":false},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"PUBLIC_VALUES_LENGTH","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"bytes32","name":"blockHash","internalType":"bytes32"}],"name":"executionBlockHashes","inputs":[{"type":"uint64","name":"slot","internalType":"uint64"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint64","name":"","internalType":"uint64"}],"name":"executionBlockNumber","inputs":[{"type":"bytes32","name":"blockHash","internalType":"bytes32"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint64","name":"","internalType":"uint64"}],"name":"genesisTime","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"bytes32","name":"","internalType":"bytes32"}],"name":"genesisValidatorsRoot","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint64","name":"","internalType":"uint64"}],"name":"head","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"bytes32","name":"headerRoot","internalType":"bytes32"}],"name":"headers","inputs":[{"type":"uint64","name":"slot","internalType":"uint64"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"isFinalizedExecutionBlock","inputs":[{"type":"bytes32","name":"blockHash","internalType":"bytes32"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint64","name":"","internalType":"uint64"}],"name":"periodOf","inputs":[{"type":"uint64","name":"slot","internalType":"uint64"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bytes32","name":"","internalType":"bytes32"}],"name":"programVKey","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint64","name":"","internalType":"uint64"}],"name":"secondsPerSlot","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint64","name":"","internalType":"uint64"}],"name":"slotsPerPeriod","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"bytes32","name":"committeeHash","internalType":"bytes32"}],"name":"syncCommittees","inputs":[{"type":"uint64","name":"period","internalType":"uint64"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"update","inputs":[{"type":"bytes","name":"proof","internalType":"bytes"},{"type":"bytes","name":"publicValues","internalType":"bytes"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"contract ISP1Verifier"}],"name":"verifier","inputs":[]}]
              

Contract Creation Code

0x610140604052348015610010575f5ffd5b506040516112d33803806112d383398101604081905261002f91610387565b6001600160a01b038a166100765760405163046c82ad60e41b81526020600482015260086024820152673b32b934b334b2b960c11b60448201526064015b60405180910390fd5b886100b25760405163046c82ad60e41b815260206004820152600b60248201526a70726f6772616d564b657960a81b604482015260640161006d565b876101005760405163046c82ad60e41b815260206004820152601560248201527f67656e6573697356616c696461746f7273526f6f740000000000000000000000604482015260640161006d565b866001600160401b03165f0361014a5760405163046c82ad60e41b815260206004820152600e60248201526d1cdb1bdd1cd4195c94195c9a5bd960921b604482015260640161006d565b856001600160401b03165f036101915760405163046c82ad60e41b815260206004820152600b60248201526a67656e6573697354696d6560a81b604482015260640161006d565b846001600160401b03165f036101db5760405163046c82ad60e41b815260206004820152600e60248201526d1cd958dbdb991cd4195c94db1bdd60921b604482015260640161006d565b836001600160401b03165f036102225760405163046c82ad60e41b815260206004820152600b60248201526a1a5b9a5d1a585b14db1bdd60aa1b604482015260640161006d565b826102645760405163046c82ad60e41b81526020600482015260116024820152701a5b9a5d1a585b12195859195c949bdbdd607a1b604482015260640161006d565b816102b25760405163046c82ad60e41b815260206004820152601860248201527f696e697469616c53796e63436f6d6d6974746565486173680000000000000000604482015260640161006d565b6001600160a01b038a1660805260a089905260c08890526001600160401b0380881660e052868116610100528516610120525f6102ef888661042c565b5f80546001600160401b0319166001600160401b0388811691821783559082526001602081815260408085208a905592851684526002908190529183208790559293508492909190610342908590610466565b6001600160401b0316815260208101919091526040015f2055506104979950505050505050505050565b80516001600160401b0381168114610382575f5ffd5b919050565b5f5f5f5f5f5f5f5f5f5f6101408b8d0312156103a1575f5ffd5b8a516001600160a01b03811681146103b7575f5ffd5b60208c015160408d0151919b50995097506103d460608c0161036c565b96506103e260808c0161036c565b95506103f060a08c0161036c565b94506103fe60c08c0161036c565b60e08c01516101008d0151610120909d01519b9e9a9d50989b979a9699959890979096909590945092505050565b5f6001600160401b0383168061045057634e487b7160e01b5f52601260045260245ffd5b6001600160401b03929092169190910492915050565b6001600160401b03818116838216019081111561049157634e487b7160e01b5f52601160045260245ffd5b92915050565b60805160a05160c05160e0516101005161012051610da961052a5f395f8181610152015261085c01525f8181610215015261083b01525f81816101d0015281816104bb015281816105cd0152818161070501528181610919015261095101525f818161026e015281816105fc015261063101525f818160f901526103b301525f818161019101526103860152610da95ff3fe608060405234801561000f575f5ffd5b50600436106100f0575f3560e01c806342c6498a116100935780638f7dcfa3116100635780638f7dcfa31461029057806395c51820146102a2578063af04759e146102c1578063c3a537ab146102f3575f5ffd5b806342c6498a146102105780634ccae0b31461023757806368b1487c1461024a57806378e1ead014610269575f5ffd5b80632b7ac3f3116100ce5780632b7ac3f31461018c5780633df3ebc7146101cb5780633ead5e04146101f25780633f37dce2146101fb575f5ffd5b80631ddb5d29146100f4578063206a172b1461012e57806322a111fc1461014d575b5f5ffd5b61011b7f000000000000000000000000000000000000000000000000000000000000000081565b6040519081526020015b60405180910390f35b61011b61013c366004610af7565b60026020525f908152604090205481565b6101747f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160401b039091168152602001610125565b6101b37f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b039091168152602001610125565b6101747f000000000000000000000000000000000000000000000000000000000000000081565b61011b61016081565b61020e610209366004610b54565b610320565b005b6101747f000000000000000000000000000000000000000000000000000000000000000081565b610174610245366004610af7565b6105c7565b61011b610258366004610af7565b60016020525f908152604090205481565b61011b7f000000000000000000000000000000000000000000000000000000000000000081565b5f54610174906001600160401b031681565b61011b6102b0366004610af7565b60036020525f908152604090205481565b6102e36102cf366004610bbe565b5f9081526004602052604090205460ff1690565b6040519015158152602001610125565b610174610301366004610bbe565b5f9081526004602052604090205461010090046001600160401b031690565b610160811461034a576040516320dc3fa760e21b8152600481018290526024015b60405180910390fd5b5f61035782840184610c0a565b9050610362816105f8565b5f61036c826107e7565b60405163020a49e360e51b81529091506001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906341493c60906103e3907f000000000000000000000000000000000000000000000000000000000000000090889088908c908c90600401610cd7565b5f6040518083038186803b1580156103f9575f5ffd5b505afa15801561040b573d5f5f3e3d5ffd5b5050505060c0820180515f805467ffffffffffffffff19166001600160401b03928316908117825560a08601519082526001602081815260408085209390935560e088018051875187168652600383528486205583518085018552928352610100808a0151871684840190815291518652600490925292842091518254935168ffffffffffffffffff1990941690151568ffffffffffffffff00191617929094169093021790915590516104e0907f000000000000000000000000000000000000000000000000000000000000000090610d37565b90508115610507576101208301516001600160401b0382165f908152600260205260409020555b6101408301511580159061054757505f600281610525846001610d64565b6001600160401b03166001600160401b031681526020019081526020015f2054145b1561057a5761014083015160025f610560846001610d64565b6001600160401b0316815260208101919091526040015f20555b8260e001518360a001518460c001516001600160401b03167fb561120efcb8d26a784ae9c2230d392b057da4703169a6db3fef0cda2118c93860405160405180910390a450505050505050565b5f6105f27f000000000000000000000000000000000000000000000000000000000000000083610d37565b92915050565b80517f0000000000000000000000000000000000000000000000000000000000000000146106655780516040516312cec74560e11b81527f000000000000000000000000000000000000000000000000000000000000000060048201526024810191909152604401610341565b5f5460408201516001600160401b03918216911681146106b157604080830151905163342699d160e11b81526001600160401b0380841660048301529091166024820152604401610341565b6001600160401b0381165f908152600160209081526040909120549083015181146106ff576020830151604051630edb5cbf60e21b8152610341918391600401918252602082015260400190565b5f61072a7f000000000000000000000000000000000000000000000000000000000000000084610d37565b6001600160401b0381165f90815260026020526040902054606086015191925090811461077a5760608501516040516303c7897d60e01b8152610341918391600401918252602082015260400190565b5f600281610789856001610d64565b6001600160401b03166001600160401b031681526020019081526020015f20549050808660800151146107df5760808601516040516309ceefc960e21b8152610341918391600401918252602082015260400190565b505050505050565b5f805460c08301516001600160401b03918216911681106108345760c083015160405163189a9b8d60e01b81526001600160401b0380841660048301529091166024820152604401610341565b5f610880427f00000000000000000000000000000000000000000000000000000000000000007f000000000000000000000000000000000000000000000000000000000000000061099b565b9050806001600160401b03168460c001516001600160401b031611156108d25760c0840151604051631a17ebc760e11b81526001600160401b0391821660048201529082166024820152604401610341565b60a08401516108f457604051635e4f067760e01b815260040160405180910390fd5b60e0840151610916576040516323751b4f60e11b815260040160405180910390fd5b5f7f00000000000000000000000000000000000000000000000000000000000000008560c001516109479190610d37565b90506109826109767f000000000000000000000000000000000000000000000000000000000000000085610d37565b828761012001516109e7565b935061099381866101400151610a70565b505050919050565b5f826001600160401b03168410156109b457505f6109e0565b816001600160401b0316836001600160401b0316856109d39190610d83565b6109dd9190610d96565b90505b9392505050565b5f81610a0657604051633ff6cb5360e11b815260040160405180910390fd5b6001600160401b038084165f81815260026020526040902054918616108015610a2d575080155b15610a3c5760019150506109e0565b828114610a665760405163f59a156b60e01b81526004810182905260248101849052604401610341565b505f949350505050565b80610a79575050565b5f600281610a88856001610d64565b6001600160401b0316815260208101919091526040015f2054905080610aad57505050565b818114610ad757604051634b7329e360e01b81526004810182905260248101839052604401610341565b505050565b80356001600160401b0381168114610af2575f5ffd5b919050565b5f60208284031215610b07575f5ffd5b6109e082610adc565b5f5f83601f840112610b20575f5ffd5b5081356001600160401b03811115610b36575f5ffd5b602083019150836020828501011115610b4d575f5ffd5b9250929050565b5f5f5f5f60408587031215610b67575f5ffd5b84356001600160401b03811115610b7c575f5ffd5b610b8887828801610b10565b90955093505060208501356001600160401b03811115610ba6575f5ffd5b610bb287828801610b10565b95989497509550505050565b5f60208284031215610bce575f5ffd5b5035919050565b60405161016081016001600160401b0381118282101715610c0457634e487b7160e01b5f52604160045260245ffd5b60405290565b5f610160828403128015610c1c575f5ffd5b50610c25610bd5565b8235815260208084013590820152610c3f60408401610adc565b6040820152606083810135908201526080808401359082015260a08084013590820152610c6e60c08401610adc565b60c082015260e08381013590820152610c8a6101008401610adc565b6101008201526101208381013590820152610140928301359281019290925250919050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b858152606060208201525f610cf0606083018688610caf565b8281036040840152610d03818587610caf565b98975050505050505050565b634e487b7160e01b5f52601260045260245ffd5b634e487b7160e01b5f52601160045260245ffd5b5f6001600160401b03831680610d4f57610d4f610d0f565b806001600160401b0384160491505092915050565b6001600160401b0381811683821601908111156105f2576105f2610d23565b818103818111156105f2576105f2610d23565b5f82610da457610da4610d0f565b50049056000000000000000000000000b01856abef5b971019f1d25630450cc6bcbafb21000854b9b72ab6bfca191c95cb131971a17a458c2faebdd216d9dbe874eb4730d8ea171f3c94aea21ebc42a1ed61052acf3f9209c00e4efbaaddac09ed9b807800000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000062b07d60000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000aee980456999d834141b9ab1d1339332bb85d899afcd682de58f009a6d6efc45b3d547a2837f9a03c83a3923d07d0c390e8c2e03c1aa44bf5d6e27405c3d4df46b2c53d284387717d1acc14c7478298cdcacbfd529c1a7f609481776eb650e2f0b6007

Deployed ByteCode

0x608060405234801561000f575f5ffd5b50600436106100f0575f3560e01c806342c6498a116100935780638f7dcfa3116100635780638f7dcfa31461029057806395c51820146102a2578063af04759e146102c1578063c3a537ab146102f3575f5ffd5b806342c6498a146102105780634ccae0b31461023757806368b1487c1461024a57806378e1ead014610269575f5ffd5b80632b7ac3f3116100ce5780632b7ac3f31461018c5780633df3ebc7146101cb5780633ead5e04146101f25780633f37dce2146101fb575f5ffd5b80631ddb5d29146100f4578063206a172b1461012e57806322a111fc1461014d575b5f5ffd5b61011b7f000854b9b72ab6bfca191c95cb131971a17a458c2faebdd216d9dbe874eb473081565b6040519081526020015b60405180910390f35b61011b61013c366004610af7565b60026020525f908152604090205481565b6101747f000000000000000000000000000000000000000000000000000000000000000c81565b6040516001600160401b039091168152602001610125565b6101b37f000000000000000000000000b01856abef5b971019f1d25630450cc6bcbafb2181565b6040516001600160a01b039091168152602001610125565b6101747f000000000000000000000000000000000000000000000000000000000000200081565b61011b61016081565b61020e610209366004610b54565b610320565b005b6101747f0000000000000000000000000000000000000000000000000000000062b07d6081565b610174610245366004610af7565b6105c7565b61011b610258366004610af7565b60016020525f908152604090205481565b61011b7fd8ea171f3c94aea21ebc42a1ed61052acf3f9209c00e4efbaaddac09ed9b807881565b5f54610174906001600160401b031681565b61011b6102b0366004610af7565b60036020525f908152604090205481565b6102e36102cf366004610bbe565b5f9081526004602052604090205460ff1690565b6040519015158152602001610125565b610174610301366004610bbe565b5f9081526004602052604090205461010090046001600160401b031690565b610160811461034a576040516320dc3fa760e21b8152600481018290526024015b60405180910390fd5b5f61035782840184610c0a565b9050610362816105f8565b5f61036c826107e7565b60405163020a49e360e51b81529091506001600160a01b037f000000000000000000000000b01856abef5b971019f1d25630450cc6bcbafb2116906341493c60906103e3907f000854b9b72ab6bfca191c95cb131971a17a458c2faebdd216d9dbe874eb473090889088908c908c90600401610cd7565b5f6040518083038186803b1580156103f9575f5ffd5b505afa15801561040b573d5f5f3e3d5ffd5b5050505060c0820180515f805467ffffffffffffffff19166001600160401b03928316908117825560a08601519082526001602081815260408085209390935560e088018051875187168652600383528486205583518085018552928352610100808a0151871684840190815291518652600490925292842091518254935168ffffffffffffffffff1990941690151568ffffffffffffffff00191617929094169093021790915590516104e0907f000000000000000000000000000000000000000000000000000000000000200090610d37565b90508115610507576101208301516001600160401b0382165f908152600260205260409020555b6101408301511580159061054757505f600281610525846001610d64565b6001600160401b03166001600160401b031681526020019081526020015f2054145b1561057a5761014083015160025f610560846001610d64565b6001600160401b0316815260208101919091526040015f20555b8260e001518360a001518460c001516001600160401b03167fb561120efcb8d26a784ae9c2230d392b057da4703169a6db3fef0cda2118c93860405160405180910390a450505050505050565b5f6105f27f000000000000000000000000000000000000000000000000000000000000200083610d37565b92915050565b80517fd8ea171f3c94aea21ebc42a1ed61052acf3f9209c00e4efbaaddac09ed9b8078146106655780516040516312cec74560e11b81527fd8ea171f3c94aea21ebc42a1ed61052acf3f9209c00e4efbaaddac09ed9b807860048201526024810191909152604401610341565b5f5460408201516001600160401b03918216911681146106b157604080830151905163342699d160e11b81526001600160401b0380841660048301529091166024820152604401610341565b6001600160401b0381165f908152600160209081526040909120549083015181146106ff576020830151604051630edb5cbf60e21b8152610341918391600401918252602082015260400190565b5f61072a7f000000000000000000000000000000000000000000000000000000000000200084610d37565b6001600160401b0381165f90815260026020526040902054606086015191925090811461077a5760608501516040516303c7897d60e01b8152610341918391600401918252602082015260400190565b5f600281610789856001610d64565b6001600160401b03166001600160401b031681526020019081526020015f20549050808660800151146107df5760808601516040516309ceefc960e21b8152610341918391600401918252602082015260400190565b505050505050565b5f805460c08301516001600160401b03918216911681106108345760c083015160405163189a9b8d60e01b81526001600160401b0380841660048301529091166024820152604401610341565b5f610880427f0000000000000000000000000000000000000000000000000000000062b07d607f000000000000000000000000000000000000000000000000000000000000000c61099b565b9050806001600160401b03168460c001516001600160401b031611156108d25760c0840151604051631a17ebc760e11b81526001600160401b0391821660048201529082166024820152604401610341565b60a08401516108f457604051635e4f067760e01b815260040160405180910390fd5b60e0840151610916576040516323751b4f60e11b815260040160405180910390fd5b5f7f00000000000000000000000000000000000000000000000000000000000020008560c001516109479190610d37565b90506109826109767f000000000000000000000000000000000000000000000000000000000000200085610d37565b828761012001516109e7565b935061099381866101400151610a70565b505050919050565b5f826001600160401b03168410156109b457505f6109e0565b816001600160401b0316836001600160401b0316856109d39190610d83565b6109dd9190610d96565b90505b9392505050565b5f81610a0657604051633ff6cb5360e11b815260040160405180910390fd5b6001600160401b038084165f81815260026020526040902054918616108015610a2d575080155b15610a3c5760019150506109e0565b828114610a665760405163f59a156b60e01b81526004810182905260248101849052604401610341565b505f949350505050565b80610a79575050565b5f600281610a88856001610d64565b6001600160401b0316815260208101919091526040015f2054905080610aad57505050565b818114610ad757604051634b7329e360e01b81526004810182905260248101839052604401610341565b505050565b80356001600160401b0381168114610af2575f5ffd5b919050565b5f60208284031215610b07575f5ffd5b6109e082610adc565b5f5f83601f840112610b20575f5ffd5b5081356001600160401b03811115610b36575f5ffd5b602083019150836020828501011115610b4d575f5ffd5b9250929050565b5f5f5f5f60408587031215610b67575f5ffd5b84356001600160401b03811115610b7c575f5ffd5b610b8887828801610b10565b90955093505060208501356001600160401b03811115610ba6575f5ffd5b610bb287828801610b10565b95989497509550505050565b5f60208284031215610bce575f5ffd5b5035919050565b60405161016081016001600160401b0381118282101715610c0457634e487b7160e01b5f52604160045260245ffd5b60405290565b5f610160828403128015610c1c575f5ffd5b50610c25610bd5565b8235815260208084013590820152610c3f60408401610adc565b6040820152606083810135908201526080808401359082015260a08084013590820152610c6e60c08401610adc565b60c082015260e08381013590820152610c8a6101008401610adc565b6101008201526101208381013590820152610140928301359281019290925250919050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b858152606060208201525f610cf0606083018688610caf565b8281036040840152610d03818587610caf565b98975050505050505050565b634e487b7160e01b5f52601260045260245ffd5b634e487b7160e01b5f52601160045260245ffd5b5f6001600160401b03831680610d4f57610d4f610d0f565b806001600160401b0384160491505092915050565b6001600160401b0381811683821601908111156105f2576105f2610d23565b818103818111156105f2576105f2610d23565b5f82610da457610da4610d0f565b50049056