Ziren 2.1

Share on
Ziren 2.1

Ziren 2.1 is released. It makes four changes to the proof system introduced in Ziren 2.0, and the design paper has been revised to match.

  • Security level. Every component of every proof stage now has at least 128 bits of interactive soundness, counted only in the two proximity regimes that rest on theorems. In 2.0 each stage had more than 100 bits.
  • The cross-shard check. The elliptic-curve digest that carried registers and memory between shards is gone. A challenge drawn from a hash chain replaces it, so every component of the compressed proof is now hash-based.
  • Size and speed at the new level. The compressed proof is 270,477 bytes (264 KiB), down from 290,530. On December 3rd 2.1 went into production on four NVIDIA RTX 5090 GPUs and proved its first 100 Ethereum mainnet blocks in a median of 4.97 seconds, each in under 12 seconds.
  • A hash-based terminal proof. An opt-in compact shrink produces a final proof that an Ethereum contract or a Bitcoin bridge can check directly, without the Groth16 or PLONK wrap.

The rest of this article sets out what each change is, what it cost, and what it does not establish.

128 bits per component

Three parameters largely set the security level of a hash-based proof: the size of the field its challenges are drawn from, the number of queries into each committed oracle, and the proof of work the prover does before a challenge.

Ziren 2.0 drew its challenges from the degree-4 extension of the 31-bit KoalaBear field, which has about 2^124 elements. An error term of the form degree over field size cannot reach 128 bits in a field that small. Ziren 2.1 moves every challenge to the degree-5 extension, about 2^155 elements, and solves every WHIR schedule again so that each component reaches the target: core, recursion, compress, shrink and wrap.

The query counts are solved from the target: the code picks the fewest queries that reach 128 bits in each phase. The first oracle of a core shard is counted in the unique-decoding regime, where one query into a code of rate 1/2 is worth 0.415 bits. The oracles committed after it are counted under the Johnson bound. Both regimes rest on proved bounds. The proximity-gap conjectures that were refuted in 2025 and 2026 concern distances up to capacity, and no schedule in 2.1 uses that range. The core schedule now makes 256, 60 and 33 queries across its three query phases, with 22 bits of grinding on each, and one query fewer in any phase falls below 128 bits.

Ziren 2.0 against 2.1: the challenge field, the security target and level at each scale, and the size of the compressed proof.
Ziren 2.0 against 2.1: the challenge field, the security target and level at each scale, and the size of the compressed proof.

Three points about how to read these figures.

They bound the interactive protocol. After the Fiat-Shamir compilation, one proof has about 123 bits of security, measured as expected work per forgery, and a block proof about 119. The limit on a single proof is the 248-bit digest, not the proof system.

The level is per component. 128 bits is the round-by-round level, the minimum over the verifier's messages. Summing the components of one stage gives about 124 bits, and summing over one proof of each of the five stages (core, recursion, the compress root, shrink and wrap) gives 121.81.

End-to-end knowledge soundness remains conditional on four hypotheses, which the paper states as open: round-by-round knowledge soundness of each node's protocol as we have composed it, the idealised model of recursive composition, the correctness of the recursion programs, and three premises of the trace-uniqueness argument.

The Ethereum Foundation's requirement

The Ethereum Foundation's zkEVM security milestones ask, by early December 2026, for 128-bit provable security as estimated by its soundcalc calculator, a final proof of at most 300 KiB, and a security argument for the recursion architecture. The milestones were set in December 2025 and the last deadline was moved to early December in February 2026.

Ziren 2.1 stands as follows against the three.

  • 128 bits by soundcalc's measure. The calculator's headline is the minimum of the per-round levels, with grinding and without the non-interactive compilation. That is the 128-bit figure above. Our analysis uses soundcalc with an extension for jagged commitments over WHIR, which is pull request 91 to the calculator. Until that extension is merged, the figure is our computation and Ziren does not appear in the calculator's published reports.
  • Proof size. 264 KiB, against a limit of 300.
  • Security argument. The paper gives a conditional composition theorem for the recursion tree and names the four hypotheses it depends on. It is an argument with stated gaps, not a completed proof.

The cross-shard check without a curve

A long execution is cut into shards that are proved separately. Registers and memory have to agree across them: the last value one shard leaves at an address must be the first value the next shard that touches it reads. In 2.0 an elliptic-curve multiset hash carried that agreement. Each cross-shard tuple was lifted to a point on a curve over a degree-7 extension field, each shard published a running sum of its points, and the root checked that the sums cancelled. Its soundness rested on an assumption about the curve that Shor's algorithm breaks, and for which we know no numerical bound classically.

The last two curves described the replacement in November, when it was on a branch. It is now in the release, with two changes since.

Each shard commits the rows that carry cross-shard lookups in a round of their own. A hash chain absorbs those commitments, and its final value fixes one LogUp challenge for the whole execution, drawn after 22 bits of proof of work. Small separate proofs, the global proofs, then show that the cross-shard lookups of all shards sum to zero under that challenge, and the recursion checks that these proofs open exactly the rounds the shards committed. The global sum sits outside the shard proof, as in Pico.

The first change is that the chain runs in eight lanes. A shard extends one lane and leaves the others alone, so different workers extend different lanes at the same time. The second is that the global proofs are grouped: one proof opens several global rounds of one lane, with one GKR, one zerocheck and one batched opening. A block needs fewer of them, and the recursion tree has fewer to verify.

The challenge is drawn in one pass. A shard proof needs nothing from other shards, so each shard is proved as soon as it is executed and the block is executed once.

What it costs. The global proofs are proved after the block's last shard. Before they were grouped, a block needed about 60 of them, each with about 100 ms of fixed cost. The live-block timings below include what is left of that tail.

What it removes. The curve needed a chip of its own, with two rows for every word a shard touched. On the block we measured for 2.0 (block 25,955,640, 495.6 million cycles), that chip held 15% of the committed area, 8.8 of 58.9 cells per executed instruction. Those rows no longer exist.

What it rests on. The hash chain, the binding of the commitments, and the LogUp argument every shard already uses. Nothing new is assumed. The challenge is drawn once per block, so its error grows with the number of cross-shard lookups. For the block measured in the paper it is about 2^-146.6, which leaves the composite figure at 116.94 bits.

The paper compares four ways to carry cross-shard state.

Four ways to carry cross-shard state, with what each one's soundness rests on and what it costs. Ziren 2.1 uses the global challenge.
Four ways to carry cross-shard state, with what each one's soundness rests on and what it costs. Ziren 2.1 uses the global challenge.

What hash-based means here

In September we set a test for the phrase post-quantum: every assumption in the security theorem has to hold against a quantum adversary. Removing the curve was necessary for Ziren to pass that test. It is not sufficient, and the paper says so directly. It computes no quantum security level and claims post-quantum security for no configuration.

The reasons are specific.

  • The composition theorem for the recursion tree has no quantum statement.
  • The hash is one public permutation used in three modes, not a random function, and we know of no quantum result for a duplex-sponge transcript or for a Merkle tree of truncated permutations.
  • Treating proof of work as a reduction in a round's error is a modelling step.
  • By the bound we cite for a single proof, 128 bits against an adversary making quantum queries would need per-round errors near 2^-256 and a digest of about 384 bits.

What 2.1 establishes is narrower and exact: every component of the shard and recursion arguments is hash-based, and the one component among them that a quantum computer breaks outright has been removed.

After the compressed proof: proof agility

The compressed proof ends the proving stack for a native verifier. A verifier with different costs needs a further proof that re-proves the compressed one and preserves its statement. Ziren has three such terminal routes.

  • SNARK wrapping. A Groth16 or PLONK proof over BN254, checked by an Ethereum contract with a constant number of pairings. The Groth16 and PLONK wrap keys are regenerated for 2.1, including the immutable wrap verifying key. This route is pairing-based and is not post-quantum. The security accounting in this article covers the proof stages up to the SNARK; the pairing-based SNARK carries its own assumptions and level.
  • Compact shrink. A hash-based terminal proof under a byte-oriented hash, small enough for an Ethereum contract or a Bitcoin bridge to check directly, with no SNARK wrap. It runs over the degree-5 extension at 128 bits per query round, with Keccak-256, SHA-256 and BLAKE3 suites, and is opt-in (#568). Its Solidity verifier is maintained separately, in the zkOP repository.
  • Garbled verification. A garbled circuit that evaluates a hash-based verifier, for protocols that check a computation on Bitcoin only when it is disputed. The design is in Garbling Ziren's STARK verifier for Bitcoin.

The wrap sits after the compressed proof, not inside it. A deployment chooses the terminal proof its verifier can afford today, and can change it later without changing the guest program, the statement proved, or anything in the proving stack beneath the compressed proof. We call this proof agility: cryptographic agility applied at the proof layer.

In practice a deployment starts on the wrap, because a pairing check is the cheapest thing an Ethereum contract can verify, and moves to a hash-based terminal proof when one is ready for it. The Metis Hybrid Rollup is planned in that order, as described in The post-quantum hybrid rollup. The compact shrink is that proof. It is in 2.1 as an opt-in feature, and the wrap remains the default route on Ethereum.

Performance at 128 bits

On December 3rd 2026 Ziren 2.1 proved Ethereum mainnet blocks as they were produced, one block at a time, with the Reth guest.

In production. The four-GPU production cluster moved to 2.1 at 02:10 UTC. The first column of the table is its first 100 blocks. There were no recursion errors and no panics. In the first 20 minutes, 27 blocks were skipped because the RPC provider did not return their witness; those are not prover failures.

In staging. A staging run the same day proved 100 live blocks on four GPUs and 100 on two. The two runs ran at the same time on one host and overlap on most of their blocks. All 200 proofs were verified, with their recursion keys checked against the allowlist.

Ziren 2.1 proving live Ethereum mainnet blocks on 3 December 2026: the first 100 production blocks on four GPUs, and the two staging runs.
Ziren 2.1 proving live Ethereum mainnet blocks on 3 December 2026: the first 100 production blocks on four GPUs, and the two staging runs.

Throughput in staging was 32.2 million guest cycles per second on four GPUs and 19.7 million on two. Mean proving time by block size, from the same staging runs:

Mean proving time by the number of guest cycles in the block, from the staging runs.
Mean proving time by the number of guest cycles in the block, from the staging runs.

The hardware is NVIDIA RTX 5090 GPUs (32 GB) in a host with an AMD EPYC 9355 processor and 925 GB of memory. Proving time runs from the prove request to the compressed proof and excludes client execution and verification. The measurements are on Ziren 2.1.0 at commit 45d5232d. The GPU prover is at its main branch plus one change still in review, a precheck for 256-bit multiplication.

For reference, the public listing for 2.0 averaged 8.6 seconds per block on a four-GPU cluster as of November 3rd. Those were different blocks, proved at 2.0's security level, so the two figures are not like for like.

What 128 bits cost. Before it was optimized, the 128-bit prover was slower than 2.0 on whole blocks. Up to the last shard proof it was already level with 2.0. Almost all of the gap was in the tail of the block, the global proofs described above. The recovery came from two places: the one-pass challenge with grouped global proofs, and the GPU prover changes listed below.

Besides the security level, these changes are in the numbers.

  • 256-bit word syscalls. Nineteen system calls on 32-byte words, proved by nine chips in the core shard. The Reth guest runs the EVM's 256-bit arithmetic through them.
  • Narrower rows. Every register access has one column and one lookup fewer than in 2.0, the instruction frame no longer holds the opcode, and branches make fewer lookups. An addition row is 32 cells with 16 interactions, against 36 cells in 2.0. A word store is 45 cells with 20 interactions, and a branch 49 cells with at most 18.
  • Smaller recursion machines. The recursion and shrink machines prove over 2^20 rows, which removes two rounds from every sumcheck over rows. A recursion proof takes about 160 ms for a shard leaf and 142 ms for a compose node on two GPUs.
  • GPU prover. The device prover runs the 128-bit configuration over the degree-5 extension. Tracing ahead of the prove pass shortens that pass by about 8%. Compose jobs are routed by the work each GPU has left. A coset split cuts zerocheck memory, which fixed a GPU allocation rescue. When all cards share a socket, the prover is pinned to its NUMA node, worth 2.9% on two GPUs.

Proof size. The compressed proof is 270,477 bytes for every program and does not grow with the length of the execution. The root of the recursion tree proves under its own schedule, tuned to keep the published proof small: rate 2^-5, folds of 2, 4, 4 and 4, and 45, 28, 20 and 16 queries, with every component still at 128 bits or more. Native verification time has not been re-measured on the current proof. At the first commits of this configuration, proofs of 284,396 bytes verified in a median of 31 ms, without the child-key allowlist checks.

Geth as a guest

Ziren also proves Geth as a guest program: the block keeper from go-ethereum, written in Go. For 2.1 our fork of it is rebased onto upstream go-ethereum. Its BN254 and secp256k1 field and curve arithmetic, MULMOD and modular exponentiation now run on the 256-bit syscalls. Operands are reduced before each call so that every call is provable, which fixed a GPU crash on large shards.

Over 14 mainnet blocks in the range 26,541,023 to 26,541,037, the guest's cycle count fell from 48.67 billion to 17.95 billion.

The rebased Geth guest on 2.1: mean time per block, throughput, and proving time against the old guest.
The rebased Geth guest on 2.1: mean time per block, throughput, and proving time against the old guest.

All 112 runs verified. On two GPUs the old guest hit 13 GPU allocation rescues and the new guest none.

What changes for users

The constraint system changed, and with it the chip keys, the set of admissible recursion keys and the wrap keys. The regenerated Groth16 and PLONK keys are in the v2.1.0 archives and in the repository under crates/verifier/bn254-vk. Proofs and verifying keys from 2.0 do not carry over: programs are proved again under 2.1, and an onchain verifier needs the 2.1 keys.

Two fixes are in the release. The executor's JIT now handles failing and halting syscalls the same way as the interpreter (#602), and the byte lookup on a jump to x0 is corrected (#601).

What remains

  • The second curve. Onchain verification on Ethereum still goes through the BN254 wrap by default. The compact shrink that replaces it is opt-in in 2.1.
  • Measurements. A comparison of the Reth and Geth guests over the same blocks, and the verification time of the current proof, are still to be measured on 2.1.
  • Machine-checked determinism. The 104 Lean theorems cover 57 chips of the core machine as extracted before the global challenge and the later frame changes. They do not yet cover the 256-bit word chips or the recursion machine.
  • The four hypotheses. Named above and stated in the paper.
  • The calculator. The jagged-over-WHIR extension has to be merged before Ziren appears in soundcalc's reports.

Using it

More articles
House of ZK, Brussels: A Showcase of Zero Knowledge Excellence
The House of ZK event, which coincided with ETHCC week in Brussels on July 11, 2024, proved to be the central hub for blockchain developers, scholars, and industry leaders dedicated to the exploration and advancement of ZK-based technologies. This one-day event was packed with educational keynotes, engaging panels, and in-depth discussions, focusing on the profound potential and diverse applications of ZK in blockchain.
Hello World: November Newsletter
Ziren 2.1

Ziren 2.1 is released. It makes four changes to the proof system introduced in Ziren 2.0, and the design paper has been revised to match.

  • Security level. Every component of every proof stage now has at least 128 bits of interactive soundness, counted only in the two proximity regimes that rest on theorems. In 2.0 each stage had more than 100 bits.
  • The cross-shard check. The elliptic-curve digest that carried registers and memory between shards is gone. A challenge drawn from a hash chain replaces it, so every component of the compressed proof is now hash-based.
  • Size and speed at the new level. The compressed proof is 270,477 bytes (264 KiB), down from 290,530. On December 3rd 2.1 went into production on four NVIDIA RTX 5090 GPUs and proved its first 100 Ethereum mainnet blocks in a median of 4.97 seconds, each in under 12 seconds.
  • A hash-based terminal proof. An opt-in compact shrink produces a final proof that an Ethereum contract or a Bitcoin bridge can check directly, without the Groth16 or PLONK wrap.

The rest of this article sets out what each change is, what it cost, and what it does not establish.

128 bits per component

Three parameters largely set the security level of a hash-based proof: the size of the field its challenges are drawn from, the number of queries into each committed oracle, and the proof of work the prover does before a challenge.

Ziren 2.0 drew its challenges from the degree-4 extension of the 31-bit KoalaBear field, which has about 2^124 elements. An error term of the form degree over field size cannot reach 128 bits in a field that small. Ziren 2.1 moves every challenge to the degree-5 extension, about 2^155 elements, and solves every WHIR schedule again so that each component reaches the target: core, recursion, compress, shrink and wrap.

The query counts are solved from the target: the code picks the fewest queries that reach 128 bits in each phase. The first oracle of a core shard is counted in the unique-decoding regime, where one query into a code of rate 1/2 is worth 0.415 bits. The oracles committed after it are counted under the Johnson bound. Both regimes rest on proved bounds. The proximity-gap conjectures that were refuted in 2025 and 2026 concern distances up to capacity, and no schedule in 2.1 uses that range. The core schedule now makes 256, 60 and 33 queries across its three query phases, with 22 bits of grinding on each, and one query fewer in any phase falls below 128 bits.

Ziren 2.0 against 2.1: the challenge field, the security target and level at each scale, and the size of the compressed proof.
Ziren 2.0 against 2.1: the challenge field, the security target and level at each scale, and the size of the compressed proof.

Three points about how to read these figures.

They bound the interactive protocol. After the Fiat-Shamir compilation, one proof has about 123 bits of security, measured as expected work per forgery, and a block proof about 119. The limit on a single proof is the 248-bit digest, not the proof system.

The level is per component. 128 bits is the round-by-round level, the minimum over the verifier's messages. Summing the components of one stage gives about 124 bits, and summing over one proof of each of the five stages (core, recursion, the compress root, shrink and wrap) gives 121.81.

End-to-end knowledge soundness remains conditional on four hypotheses, which the paper states as open: round-by-round knowledge soundness of each node's protocol as we have composed it, the idealised model of recursive composition, the correctness of the recursion programs, and three premises of the trace-uniqueness argument.

The Ethereum Foundation's requirement

The Ethereum Foundation's zkEVM security milestones ask, by early December 2026, for 128-bit provable security as estimated by its soundcalc calculator, a final proof of at most 300 KiB, and a security argument for the recursion architecture. The milestones were set in December 2025 and the last deadline was moved to early December in February 2026.

Ziren 2.1 stands as follows against the three.

  • 128 bits by soundcalc's measure. The calculator's headline is the minimum of the per-round levels, with grinding and without the non-interactive compilation. That is the 128-bit figure above. Our analysis uses soundcalc with an extension for jagged commitments over WHIR, which is pull request 91 to the calculator. Until that extension is merged, the figure is our computation and Ziren does not appear in the calculator's published reports.
  • Proof size. 264 KiB, against a limit of 300.
  • Security argument. The paper gives a conditional composition theorem for the recursion tree and names the four hypotheses it depends on. It is an argument with stated gaps, not a completed proof.

The cross-shard check without a curve

A long execution is cut into shards that are proved separately. Registers and memory have to agree across them: the last value one shard leaves at an address must be the first value the next shard that touches it reads. In 2.0 an elliptic-curve multiset hash carried that agreement. Each cross-shard tuple was lifted to a point on a curve over a degree-7 extension field, each shard published a running sum of its points, and the root checked that the sums cancelled. Its soundness rested on an assumption about the curve that Shor's algorithm breaks, and for which we know no numerical bound classically.

The last two curves described the replacement in November, when it was on a branch. It is now in the release, with two changes since.

Each shard commits the rows that carry cross-shard lookups in a round of their own. A hash chain absorbs those commitments, and its final value fixes one LogUp challenge for the whole execution, drawn after 22 bits of proof of work. Small separate proofs, the global proofs, then show that the cross-shard lookups of all shards sum to zero under that challenge, and the recursion checks that these proofs open exactly the rounds the shards committed. The global sum sits outside the shard proof, as in Pico.

The first change is that the chain runs in eight lanes. A shard extends one lane and leaves the others alone, so different workers extend different lanes at the same time. The second is that the global proofs are grouped: one proof opens several global rounds of one lane, with one GKR, one zerocheck and one batched opening. A block needs fewer of them, and the recursion tree has fewer to verify.

The challenge is drawn in one pass. A shard proof needs nothing from other shards, so each shard is proved as soon as it is executed and the block is executed once.

What it costs. The global proofs are proved after the block's last shard. Before they were grouped, a block needed about 60 of them, each with about 100 ms of fixed cost. The live-block timings below include what is left of that tail.

What it removes. The curve needed a chip of its own, with two rows for every word a shard touched. On the block we measured for 2.0 (block 25,955,640, 495.6 million cycles), that chip held 15% of the committed area, 8.8 of 58.9 cells per executed instruction. Those rows no longer exist.

What it rests on. The hash chain, the binding of the commitments, and the LogUp argument every shard already uses. Nothing new is assumed. The challenge is drawn once per block, so its error grows with the number of cross-shard lookups. For the block measured in the paper it is about 2^-146.6, which leaves the composite figure at 116.94 bits.

The paper compares four ways to carry cross-shard state.

Four ways to carry cross-shard state, with what each one's soundness rests on and what it costs. Ziren 2.1 uses the global challenge.
Four ways to carry cross-shard state, with what each one's soundness rests on and what it costs. Ziren 2.1 uses the global challenge.

What hash-based means here

In September we set a test for the phrase post-quantum: every assumption in the security theorem has to hold against a quantum adversary. Removing the curve was necessary for Ziren to pass that test. It is not sufficient, and the paper says so directly. It computes no quantum security level and claims post-quantum security for no configuration.

The reasons are specific.

  • The composition theorem for the recursion tree has no quantum statement.
  • The hash is one public permutation used in three modes, not a random function, and we know of no quantum result for a duplex-sponge transcript or for a Merkle tree of truncated permutations.
  • Treating proof of work as a reduction in a round's error is a modelling step.
  • By the bound we cite for a single proof, 128 bits against an adversary making quantum queries would need per-round errors near 2^-256 and a digest of about 384 bits.

What 2.1 establishes is narrower and exact: every component of the shard and recursion arguments is hash-based, and the one component among them that a quantum computer breaks outright has been removed.

After the compressed proof: proof agility

The compressed proof ends the proving stack for a native verifier. A verifier with different costs needs a further proof that re-proves the compressed one and preserves its statement. Ziren has three such terminal routes.

  • SNARK wrapping. A Groth16 or PLONK proof over BN254, checked by an Ethereum contract with a constant number of pairings. The Groth16 and PLONK wrap keys are regenerated for 2.1, including the immutable wrap verifying key. This route is pairing-based and is not post-quantum. The security accounting in this article covers the proof stages up to the SNARK; the pairing-based SNARK carries its own assumptions and level.
  • Compact shrink. A hash-based terminal proof under a byte-oriented hash, small enough for an Ethereum contract or a Bitcoin bridge to check directly, with no SNARK wrap. It runs over the degree-5 extension at 128 bits per query round, with Keccak-256, SHA-256 and BLAKE3 suites, and is opt-in (#568). Its Solidity verifier is maintained separately, in the zkOP repository.
  • Garbled verification. A garbled circuit that evaluates a hash-based verifier, for protocols that check a computation on Bitcoin only when it is disputed. The design is in Garbling Ziren's STARK verifier for Bitcoin.

The wrap sits after the compressed proof, not inside it. A deployment chooses the terminal proof its verifier can afford today, and can change it later without changing the guest program, the statement proved, or anything in the proving stack beneath the compressed proof. We call this proof agility: cryptographic agility applied at the proof layer.

In practice a deployment starts on the wrap, because a pairing check is the cheapest thing an Ethereum contract can verify, and moves to a hash-based terminal proof when one is ready for it. The Metis Hybrid Rollup is planned in that order, as described in The post-quantum hybrid rollup. The compact shrink is that proof. It is in 2.1 as an opt-in feature, and the wrap remains the default route on Ethereum.

Performance at 128 bits

On December 3rd 2026 Ziren 2.1 proved Ethereum mainnet blocks as they were produced, one block at a time, with the Reth guest.

In production. The four-GPU production cluster moved to 2.1 at 02:10 UTC. The first column of the table is its first 100 blocks. There were no recursion errors and no panics. In the first 20 minutes, 27 blocks were skipped because the RPC provider did not return their witness; those are not prover failures.

In staging. A staging run the same day proved 100 live blocks on four GPUs and 100 on two. The two runs ran at the same time on one host and overlap on most of their blocks. All 200 proofs were verified, with their recursion keys checked against the allowlist.

Ziren 2.1 proving live Ethereum mainnet blocks on 3 December 2026: the first 100 production blocks on four GPUs, and the two staging runs.
Ziren 2.1 proving live Ethereum mainnet blocks on 3 December 2026: the first 100 production blocks on four GPUs, and the two staging runs.

Throughput in staging was 32.2 million guest cycles per second on four GPUs and 19.7 million on two. Mean proving time by block size, from the same staging runs:

Mean proving time by the number of guest cycles in the block, from the staging runs.
Mean proving time by the number of guest cycles in the block, from the staging runs.

The hardware is NVIDIA RTX 5090 GPUs (32 GB) in a host with an AMD EPYC 9355 processor and 925 GB of memory. Proving time runs from the prove request to the compressed proof and excludes client execution and verification. The measurements are on Ziren 2.1.0 at commit 45d5232d. The GPU prover is at its main branch plus one change still in review, a precheck for 256-bit multiplication.

For reference, the public listing for 2.0 averaged 8.6 seconds per block on a four-GPU cluster as of November 3rd. Those were different blocks, proved at 2.0's security level, so the two figures are not like for like.

What 128 bits cost. Before it was optimized, the 128-bit prover was slower than 2.0 on whole blocks. Up to the last shard proof it was already level with 2.0. Almost all of the gap was in the tail of the block, the global proofs described above. The recovery came from two places: the one-pass challenge with grouped global proofs, and the GPU prover changes listed below.

Besides the security level, these changes are in the numbers.

  • 256-bit word syscalls. Nineteen system calls on 32-byte words, proved by nine chips in the core shard. The Reth guest runs the EVM's 256-bit arithmetic through them.
  • Narrower rows. Every register access has one column and one lookup fewer than in 2.0, the instruction frame no longer holds the opcode, and branches make fewer lookups. An addition row is 32 cells with 16 interactions, against 36 cells in 2.0. A word store is 45 cells with 20 interactions, and a branch 49 cells with at most 18.
  • Smaller recursion machines. The recursion and shrink machines prove over 2^20 rows, which removes two rounds from every sumcheck over rows. A recursion proof takes about 160 ms for a shard leaf and 142 ms for a compose node on two GPUs.
  • GPU prover. The device prover runs the 128-bit configuration over the degree-5 extension. Tracing ahead of the prove pass shortens that pass by about 8%. Compose jobs are routed by the work each GPU has left. A coset split cuts zerocheck memory, which fixed a GPU allocation rescue. When all cards share a socket, the prover is pinned to its NUMA node, worth 2.9% on two GPUs.

Proof size. The compressed proof is 270,477 bytes for every program and does not grow with the length of the execution. The root of the recursion tree proves under its own schedule, tuned to keep the published proof small: rate 2^-5, folds of 2, 4, 4 and 4, and 45, 28, 20 and 16 queries, with every component still at 128 bits or more. Native verification time has not been re-measured on the current proof. At the first commits of this configuration, proofs of 284,396 bytes verified in a median of 31 ms, without the child-key allowlist checks.

Geth as a guest

Ziren also proves Geth as a guest program: the block keeper from go-ethereum, written in Go. For 2.1 our fork of it is rebased onto upstream go-ethereum. Its BN254 and secp256k1 field and curve arithmetic, MULMOD and modular exponentiation now run on the 256-bit syscalls. Operands are reduced before each call so that every call is provable, which fixed a GPU crash on large shards.

Over 14 mainnet blocks in the range 26,541,023 to 26,541,037, the guest's cycle count fell from 48.67 billion to 17.95 billion.

The rebased Geth guest on 2.1: mean time per block, throughput, and proving time against the old guest.
The rebased Geth guest on 2.1: mean time per block, throughput, and proving time against the old guest.

All 112 runs verified. On two GPUs the old guest hit 13 GPU allocation rescues and the new guest none.

What changes for users

The constraint system changed, and with it the chip keys, the set of admissible recursion keys and the wrap keys. The regenerated Groth16 and PLONK keys are in the v2.1.0 archives and in the repository under crates/verifier/bn254-vk. Proofs and verifying keys from 2.0 do not carry over: programs are proved again under 2.1, and an onchain verifier needs the 2.1 keys.

Two fixes are in the release. The executor's JIT now handles failing and halting syscalls the same way as the interpreter (#602), and the byte lookup on a jump to x0 is corrected (#601).

What remains

  • The second curve. Onchain verification on Ethereum still goes through the BN254 wrap by default. The compact shrink that replaces it is opt-in in 2.1.
  • Measurements. A comparison of the Reth and Geth guests over the same blocks, and the verification time of the current proof, are still to be measured on 2.1.
  • Machine-checked determinism. The 104 Lean theorems cover 57 chips of the core machine as extracted before the global challenge and the later frame changes. They do not yet cover the 256-bit word chips or the recursion machine.
  • The four hypotheses. Named above and stated in the paper.
  • The calculator. The jagged-over-WHIR extension has to be merged before Ziren appears in soundcalc's reports.

Using it