Overview
Important
This is the first release of op-zk-proposer, which proposes and defends super-root ZK dispute games (game type 10), proven with SP1 on the Succinct Prover Network. It runs with kona-sp1-program v1.0.0, which lists the programs' vkey and artifacts.
What it does
- Proposes the super root of the chains in the dependency set on a fixed interval, hourly by default (
OP_ZK_PROPOSER_PROPOSAL_INTERVAL_SECONDS). Each game extends the proposer's previous game, or the anchor state when it has none. When it is two or more intervals behind, after downtime or on first start, each game spans up toOP_ZK_PROPOSER_MAX_PROPOSAL_SPAN_INTERVALSintervals (default4) until it catches up. - Defends its own games when they are challenged, by requesting SP1 proofs from the Succinct Prover Network and submitting them before the prove deadline. It defends only games created by its signer or by addresses listed in
OP_ZK_PROPOSER_OWNED_CREATORS; it does not challenge other proposers' games, which is op-challenger's job. - Resolves its games and claims the signer's bonds, including the challenger bond it wins by proving a challenged game.
- Optionally proves every game it creates without waiting for a challenge (
OP_ZK_PROPOSER_FAST_FINALITY_MODE=true), so games resolve without waiting out the challenge window, at the cost of one proof per game. - At startup, waits until the registered anchor root matches the super root its RPC returns, and checks that the onchain prestate and SP1 verifier match the published programs and its SP1 SDK before it creates a game on them. A mismatch is logged at ERROR and pauses game creation.
Running it
- Network:
--network(OP_ZK_PROPOSER_NETWORK) takes a built-in network name such asop-mainnetorop-sepolia, or setOP_ZK_PROPOSER_FACTORY_ADDRESSfor any other deployment. - Required configuration:
OP_ZK_PROPOSER_L1_RPC,OP_ZK_PROPOSER_L1_BEACON_RPC,OP_ZK_PROPOSER_L2_RPCS(one execution RPC for each chain in the dependency set),OP_ZK_PROPOSER_SUPERROOT_RPCS(op-supernode),OP_ZK_PROPOSER_PROOF_PROVIDER=network,OP_ZK_PROPOSER_PRESTATES_URL, and a transaction signer, eitherOP_ZK_PROPOSER_PRIVATE_KEYorOP_ZK_PROPOSER_SIGNER_URLwithOP_ZK_PROPOSER_SIGNER_ADDRESS. - Prestates: the published programs are served by vkey from
https://storage.googleapis.com/oplabs-network-data/proofs/kona/sp1/. If you host your own copy, keep each vkey's files available for as long as games created under it can still be live, or the proposer cannot defend those games. - Proving costs: proofs are paid in PROVE from the SP1 requester's Succinct Prover Network balance, set with
OP_ZK_PROPOSER_NETWORK_PRIVATE_KEYor through op-signer (OP_ZK_PROPOSER_SPN_SIGNER_URL). The balance is funded from Ethereum mainnet, also for chains that settle on Sepolia. The monorepo'sspn-wallettool funds and inspects it. - Bonds: the signer posts a bond with every game and gets it back only after the game resolves, its finality delay passes and the DelayedWETH delay passes. Fund it for every game created over that period, plus the catch-up games from the anchor state on first start.
The full list of variables and defaults is in the README.
Monitoring
- Metrics are off by default; set
OP_ZK_PROPOSER_METRICS_PORTto serve them. All names start withop_zk_proposer_. - Alert on
defense_deadline_remaining_seconds(time left to prove the most urgent challenged game),deadline_passed_total,signer_balance_eth,prove_balance, andunknown_prestate_challenged(a challenged game whose prestate the proposer cannot prove).
Source: https://github.com/ethereum-optimism/optimism/tree/op-zk-proposer/v1.0.0/rust/kona/sp1
🚢 Docker Image: