AggregateVerifier games on L1. It selects the next checkpoint from the latest onchain parent
state, obtains a TEE proof for that range, validates the proof against canonical L2 state, and
creates the next dispute game through DisputeGameFactory.
The production proposer is controlled by its configured L1 transaction signer. Its output is still
self-validating: each game is uniquely identified by the game type, claimed output root, parent,
L2 block number, and intermediate output roots, and the proof can be checked by the onchain verifier
and by independent challengers.
Responsibilities
A conforming proposer performs the following work:- Read the active
AggregateVerifierimplementation and proposal parameters from L1. - Recover the latest onchain parent state from
AnchorStateRegistryandDisputeGameFactory. - Select the next checkpoint block that is no later than the chosen safe head.
- Build a
prover_proverequest for the checkpoint range. - Accept only TEE proof results for proposal creation.
- Revalidate the aggregate output root and all intermediate roots against canonical L2 state immediately before L1 submission.
- Optionally pre-check the TEE signer against
TEEProverRegistry. - Submit
DisputeGameFactory.createWithInitData()with the required bond. - Retry transient proof, RPC, and transaction failures without creating out-of-order games.
Startup Configuration
At startup, the proposer connects to:- an L1 execution RPC for contract reads and transaction submission
- an L2 execution RPC for agreed L2 block headers
- a rollup RPC for sync status and output roots
- a prover RPC that implements
prover_prove AnchorStateRegistryDisputeGameFactory- an optional
TEEProverRegistry
Game Implementation Lookup
Per-Game Reads
intervalsForStartingBlock returns the (BLOCK_INTERVAL, INTERMEDIATE_BLOCK_INTERVAL) pair that
applies to a game starting at parentL2BlockNumber. Implementations earlier than version 0.3.0
expose only BLOCK_INTERVAL() and INTERMEDIATE_BLOCK_INTERVAL(). See
Proposal Interval Selection. On this page, BLOCK_INTERVAL and
INTERMEDIATE_BLOCK_INTERVAL mean that per-game pair.
BLOCK_INTERVAL must be at least 2, INTERMEDIATE_BLOCK_INTERVAL must be non-zero, and
BLOCK_INTERVAL % INTERMEDIATE_BLOCK_INTERVAL must be 0. The number of intermediate roots in a
proposal is:
Intermediate Root Count
Proposal Interval Selection
The proposal interval is not a fixed process-wide constant.AggregateVerifier version 0.3.0
and later stores two interval pairs and picks one from each game’s starting block:
Interval Pairs
ProtocolVersions schedule. The fast pair applies to games that start at or after it. While the
speedup is not scheduled, every game uses the slow pair. Both pairs must yield the same number of
intermediate roots, so the extraData layout does not change at the activation.
The proposer resolves the pair for every game it creates, reconstructs, or looks up. It reads the
active implementation from DisputeGameFactory.gameImpls(gameType) and calls
intervalsForStartingBlock each time instead of caching the result at startup. A cached value would
stop matching games once the implementation is upgraded or the activation block is reached.
AggregateVerifier versions before 0.3.0 instead expose a single fixed pair through
BLOCK_INTERVAL() and INTERMEDIATE_BLOCK_INTERVAL(). The proposer reads version() to choose
which interface to call.
The interval for new games on a network is the value that
intervalsForStartingBlock(startingBlock) returns on the implementation at
DisputeGameFactory.gameImpls(gameType). If that implementation reports a version earlier than
0.3.0, the interval is the value of BLOCK_INTERVAL().
The time from an L2 block to its L1 checkpoint also depends on the L2 block time, on how far the
chosen safe or finalized head lags the target block, and on proof generation and L1 inclusion. This
specification does not set a target proposal cadence.
Parent Recovery
The proposer recovers the latest onchain parent state from L1 before planning new work. The parent state is:Parent State Fields
AnchorStateRegistry:
Anchor Parent State
-
Compute:
-
Fetch the canonical output root for every intermediate checkpoint:
for
iin1..=BLOCK_INTERVAL / INTERMEDIATE_BLOCK_INTERVAL. -
Treat the final intermediate root as the canonical root claim for
expectedBlock. -
Encode
extraDatafromexpectedBlock,parentAddress, and the ordered intermediate roots. -
Look up the expected game:
-
If the lookup returns
address(0), stop. The current parent is the latest recovered state. - Otherwise, advance the parent to the returned game proxy and continue.
Checkpoint Selection
After recovery, the next proposal target is:Target Block Formula
targetBlock unless:
Safe Head Constraint
safeHead is either:
finalized_l2.number, by defaultsafe_l2.number, only when non-finalized proposals are explicitly enabled
Proof Request
For a checkpoint range, the proposer builds aProofRequest with:
The prover RPC method is:
Prover RPC Method
ProofResult::Tee for proposal creation. A ZK proof result is not valid input
for the current proposer path.
TEE Proposal Journal
The TEE prover returns:- an aggregate proposal for the full checkpoint range
- per-block proposals for the blocks in that range
Aggregate Proposal Fields
TEE Signature Preimage
journal is packed as:
Journal Packing
Aggregate Proposal Values
intermediateRoots are sampled every INTERMEDIATE_BLOCK_INTERVAL blocks and include
the final target block root.
Pre-Submission Validation
Immediately before submitting to L1, the proposer must re-check the proof against canonical L2 state:- Fetch the rollup output root at
targetBlock. - Require it to equal the aggregate proposal’s
outputRoot. - Extract the intermediate roots from the per-block proposals.
- Fetch the canonical output root for each intermediate checkpoint.
- Require every proposed intermediate root to equal its canonical root.
TEEProverRegistry is configured, the proposer should recover the TEE signer from the
aggregate proposal signature and call:
Signer Validity Check
false, the proposer must not submit that proof. It should discard the
proof and request a new one. If the registry check itself fails because of an RPC or deployment
issue, the proposer may continue to submission and rely on the onchain verifier to enforce signer
validity.
Game Creation
The proposer creates a game with:Game Creation Call
Root Claim
extraData is packed, not ABI-encoded:
Extra Data Packing
l2BlockNumber is encoded as a 32-byte big-endian integer. parentAddress is the recovered parent
game proxy address, or the AnchorStateRegistry address for the first game after the anchor.
initData is the TEE proof bytes for AggregateVerifier.initializeWithInitData():
Init Data Packing
TEE Proof Type
v value in the signature must be normalized to 27 or 28 before submission.
initBond is read from DisputeGameFactory.initBonds(gameType) before each game is created and is sent as the
transaction value. Nonce management, fee bumping, signing, and transaction resubmission are handled
by the L1 transaction manager.
Duplicate Games
The factory key for a game is:Factory Game Key
createWithInitData() reverts with GameAlreadyExists, the proposer treats the target as
already submitted. It refreshes recovery from L1 and continues from the recovered tip. This handles
the case where a previous transaction succeeded but the proposer did not observe the receipt, or
where another valid proposer submitted the same game first.
Retry Behavior
The proposer retries transient failures on later ticks:
The current implementation retries a single proof target up to three times before resetting pipeline
state. Proposal submission is bounded by a ten minute timeout.
Admin Interface
The proposer may expose an optional JSON-RPC admin interface. When enabled, it provides:
Starting an already running proposer and stopping a stopped proposer are errors.