ethrex-guest: Pushing the Limits of zkEVM Performance
Ethereum’s path toward proof-based execution is gaining momentum, and a new stateless validation guest program is demonstrating how much performance can improve when software is designed specifically for zero-knowledge virtual machines.
Built in Rust from the ground up for provable computation, ethrex-guest validated 96% of a sample of 99 Ethereum mainnet blocks in less than 12 seconds on a single NVIDIA RTX 5090. The median proving time was 8.05 seconds, and every generated proof was successfully verified.
The implementation also recorded the lowest aggregate ZisK cost among six evaluated guests across gas limits ranging from 60 million to 200 million. It completed all 4,891 benchmark cases, while an earlier version of the ethrex guest required 2.52 times more aggregate proving cost on the shared workload.
Why Ethereum needs execution proofs
Ethereum nodes currently execute transactions independently and maintain enough state to confirm that each block is valid. As the network grows, this approach increases the hardware, storage and processing requirements for node operators.
Execution proofs offer a different model. Instead of repeating the entire computation, a node could verify a compact cryptographic proof showing that the block was executed correctly. This would separate the cost of performing execution from the cost of checking it, potentially making Ethereum easier to scale without sacrificing security or decentralization.
For that vision to become practical, the proving systems and the programs they execute must both become significantly more efficient.
What is a guest program?
A guest program is the application whose execution is recorded and proven inside a zkVM. In Ethereum’s case, it receives a block payload together with an execution witness: the information needed to validate the block without storing the entire chain state.
The guest performs stateless execution, applies Ethereum’s rules and produces the resulting state commitment. The zkVM then generates a proof that the computation happened correctly.
There are two major ways to improve this process: optimize the zkVM itself or reduce the amount of work performed by the guest. The new ethrex-guest focuses heavily on the second approach.
A clean break from native execution
The original ethrex guest shared much of its code with a conventional Ethereum execution client. This reduced duplication and made protocol updates easier to manage, but it also created engineering compromises.
Traditional CPUs and zkVMs do not assign the same cost to computation. An operation that is efficient on native hardware may be expensive inside a proving environment. Attempts to support both targets through conditional compilation and interchangeable components gradually increased complexity.
The new design treats provable execution as its own engineering problem. Rather than adapting a native client, the team created a compact implementation focused exclusively on stateless block validation.
An EVM optimized for proving
The Ethereum Virtual Machine is a major source of proving cost, particularly in blocks containing large amounts of contract execution.
The new guest uses a threaded interpreter that transfers control directly between opcode handlers, reducing dispatch overhead. It also combines frequently occurring instruction sequences into specialized handlers. These shortcuts reduce unnecessary movement of values to and from the EVM stack while preserving gas accounting, execution semantics and error behavior.
The implementation further takes advantage of accelerated 256-bit arithmetic and memory operations available in ZisK. Memory width and alignment are carefully controlled because seemingly equivalent Rust operations can produce very different costs after compilation into a zkVM.
A trie built for one block at a time
A conventional execution client maintains Ethereum’s state continuously. A stateless guest only needs to process the witness for a single block, allowing its data structures to be tailored to a shorter and more predictable workload.
The new trie works directly with witness data, using an in-memory index and decoding nodes only when needed. At the end of execution, it reconstructs the new state root from the block’s changes.
Batching compatible updates, reusing unchanged commitments and avoiding redundant encoding and hashing all help reduce the cost of state reconstruction. These optimizations matter because trie traversal, witness handling and cryptographic hashing can represent a large share of total proving time.
Keeping memory under control
Memory is another critical constraint in zkVM environments. The guest uses zero-copy input decoding, reusable buffers, explicit memory pools and a manually managed EVM call stack to avoid unnecessary allocations.
In tests covering workloads between 60 million and 200 million gas, peak heap usage remained below 21%. Earlier implementations reached close to their memory limits at the highest gas levels and failed on some additional workloads. The new guest completed every benchmark case across all tested limits.
This additional headroom could become increasingly important as Ethereum targets larger and more demanding workloads.
A compact and independent codebase
The core implementation consists of six Rust crates covering basic types, serialization, cryptography, the state trie, the EVM and stateless block validation. The main libraries use a lightweight environment, while ZisK-specific code is isolated in a separate workspace.
The result is approximately 30,000 lines of core code, supported by a larger collection of tests, benchmarks and profiling tools. Keeping the implementation small and modular makes it easier to review, optimize and potentially verify formally.
The guest has been tested against stateless conformance fixtures, state tests and blockchain tests. Differential testing compares its behavior with several independent Ethereum implementations, while emulator testing checks execution inside ZisK. Reproducible builds also allow the same executable to be recreated from a pinned source revision and toolchain.
Performance results and future plans
Ethereum’s emerging real-time proving target aims for most mainnet blocks to be proven in roughly 10 seconds or less. In the initial mainnet sample, 81 of 99 blocks met that threshold. A separate Sepolia sample achieved a median proving time of 6.16 seconds, with every proof generated within 10 seconds.
These results vary by workload, and the most computationally demanding blocks still require additional optimization. Future work will focus on reducing worst-case latency, testing more adversarial scenarios and adding support for other zkVM platforms.
Formal verification is another important goal. A compact, isolated guest is easier to analyze component by component, helping demonstrate that performance optimizations preserve Ethereum’s exact execution rules.
By treating the guest as a dedicated software project rather than a secondary version of a native client, ethrex-guest highlights a broader lesson for Ethereum’s zkEVM roadmap: provable execution requires its own architectures, tools and performance priorities.