Designing Ethereum execution from the ground up for provable computation.
Today, we are introducing ethrex-guest, a new Ethereum stateless validation guest program developed at LambdaClass and designed from the ground up for provable execution.
Using ZisK v1.4.0-alpha on a single NVIDIA RTX 5090, our new guest proved 96% of a sample of 99 Ethereum mainnet blocks in under 12 seconds, with a median proving time of 8.05 seconds. All 99 proofs were successfully verified.
Our guest also achieves the lowest aggregate ZisK TOTAL cost among the six guests evaluated, at every gas limit from 60M to 200M, while successfully validating all 4,891 benchmark cases. On the common set of workloads, our previous ethrex guest requires 2.52× our aggregate cost. We present a more detailed comparison with other guest implementations later in this article.
We achieved these results after a few weeks of development, building an entirely new implementation in Rust with approximately 30,000 lines of core code, excluding tests and benchmarks.
Proving time distribution
View measured distribution
Our experience developing ethrex and optimizing its guest program led us to a fundamental observation: native execution and provable execution are different optimization problems. This motivated us to reconsider the architecture of our guest program from the ground up.
Ethereum's zkEVM roadmap
One of the most significant architectural changes on Ethereum's roadmap is the transition towards proof-based execution validation.
Today, Ethereum full nodes independently execute transactions and maintain the state necessary to verify the validity of blocks. As Ethereum scales, the computational and storage requirements associated with running these nodes increase.
Execution proofs allow us to decouple the cost of verifying execution from the cost of performing it. Nodes could validate the execution of an entire block by verifying a succinct cryptographic proof, substantially reducing their computational requirements.
EIP-8025 — Optional Execution Proofs proposes an incremental step towards this vision. It introduces optional execution proof generation, propagation and verification alongside existing native execution validation, allowing the proving infrastructure to mature without changing consensus validity rules. A subsequent protocol upgrade could make execution proofs mandatory.
Achieving this vision requires efficient proving systems and highly optimized guest programs.
What is a guest program?
A guest program is the program whose execution we want to prove inside a zero-knowledge virtual machine (zkVM).
In Ethereum's case, the guest program receives an execution payload and the data necessary to validate it without maintaining the entire Ethereum state. This data is commonly referred to as an execution witness.
From an execution payload to a proof
The guest performs stateless validation of the payload according to Ethereum's execution rules. The zkVM's proving system produces a cryptographic proof of that computation. Improvements to zkVMs reduce the cost of proving computation, while improvements to guest programs reduce the amount of computational work required.
Both are fundamental to achieving real-time proving and scaling Ethereum L1.
Our original approach
When we initially designed ethrex's guest program, our goal was to reuse as much of our production execution client's code as possible.
We already had an implementation of Ethereum's execution rules, including our own EVM, LEVM, our Merkle Patricia Trie, cryptographic primitives and block validation logic. Reusing these components to build a stateless validator was a natural decision.
It minimized code duplication, allowed improvements to benefit both implementations, and simplified the process of keeping the guest up to date with Ethereum's evolving protocol.
As we spent more time optimizing our guest program, we encountered an increasing number of conflicting requirements. Some optimizations that improved performance inside a zkVM introduced performance regressions in native execution, and vice versa.
The limitations of a shared implementation
Modern CPUs and zkVMs have very different computational cost models. These differences influence how we design algorithms, represent data and organize computation.
Two execution environments
Our initial approach was to introduce environment-specific implementations within our shared codebase. Where necessary, we used conditional compilation to select the implementation appropriate for each execution environment.
Over time, this introduced additional complexity into the codebase, making it harder to understand, maintain and optimize.
This was increasingly inconsistent with one of ethrex's main design principles: simplicity.
We introduced abstractions to address some of these issues. One example was our Crypto trait, which allowed the execution logic to remain independent of the underlying cryptographic implementations. This refactoring removed approximately 890 lines of duplicated, conditionally compiled code.
We also explored making our 256-bit integer implementation interchangeable, allowing different zkVMs to select arithmetic implementations better suited to their respective architectures.
These abstractions gave us greater flexibility when optimizing individual components.
More fundamental components, such as the EVM and the trie, presented a different challenge. Their performance characteristics are influenced by their overall architecture, data structures, memory representation and algorithms. Further improvements increasingly required changes to the underlying architecture of these components.
Beyond performance
Sharing an implementation also introduced challenges unrelated to execution performance.
Ethereum's proving infrastructure is still evolving rapidly. zkVM toolchains, cryptographic libraries and their interfaces change frequently, and some dependencies are only available through specific Git revisions without stable releases.
Maintaining support for multiple zkVMs within the same codebase as a production execution client meant dealing with two ecosystems with very different maturity levels and release requirements.
This complicated dependency management, increased build complexity and, in some cases, prevented us from publishing ethrex's libraries to crates.io.
It also created less obvious problems. In one instance, our ZisK guest contained several megabytes of unused native cryptographic code, preventing the construction of the emulators required for proving.
As the environment-specific implementations grew, we found ourselves effectively maintaining two distinct implementations within the same codebase, each with its own performance requirements, dependencies and development constraints.
So we decided to make that separation explicit.
From shared code to independent implementations
Coupled dependencies
Designing for provable execution from day one
We started designing a new guest program from scratch, with a clearly defined scope: Ethereum stateless execution validation.
A dedicated implementation gave us the freedom to design every component around the computational cost of proving, from fundamental data structures to individual EVM instructions.
We chose ZisK as our first optimization target, while keeping the architecture open to other zkVMs.
A zkVM-first EVM
The EVM is one of the most important components to optimize, particularly for execution-heavy blocks.
Every EVM instruction translates into computation on the underlying zkVM. Reducing the overhead associated with each EVM opcode can significantly reduce the cost of proving an entire Ethereum block.
Our new EVM uses a threaded interpreter, allowing opcode handlers to transfer control directly to the next handler and reducing dispatch overhead.
It also combines common instruction sequences into specialized handlers. These handlers reduce intermediate reads and writes to the EVM stack while preserving the original EVM semantics, gas accounting and exceptional halting behavior.
The implementation takes advantage of ZisK's accelerated 256-bit arithmetic and memory operations wherever they provide measurable benefits. Memory access width and alignment also matter: even operations that appear equivalent in Rust can translate into substantially different costs in a zkVM.
A trie designed for stateless execution
An execution client maintains Ethereum's state across blocks. A stateless guest operates on the execution witness of an individual block.
The stateless execution model creates opportunities to simplify how state is represented, accessed and updated.
Our trie implementation operates directly on witness data, using an in-memory index and decoding the necessary trie nodes. Its data structures are specifically designed for the lifetime and access patterns of a single block.
At the end of execution, the trie computes the new state root from the accumulated block changes. By batching compatible updates, reusing unchanged commitments and avoiding unnecessary encoding and hashing, we reduce the work required to reconstruct the post-state root.
This is particularly important for real Ethereum blocks, where witness handling, trie traversal and hashing can represent a substantial fraction of the guest's computational cost.
Memory as a first-class constraint
In addition to execution costs, zkVMs impose strict limits on the memory available to guest programs.
Our implementation uses zero-copy input decoding, explicitly managed memory pools, reusable buffers and an explicit EVM frame stack. These decisions help reduce unnecessary allocations and give us greater control over peak memory usage.
Memory headroom at higher gas limits
Heap exhaustion failures
Across crafted benchmarks ranging from 60M to 200M gas, our guest's peak heap utilization remains below 21%. At 200M gas, our previous ethrex guest and reth reach 99.0% and 93.4% respectively, and both encounter heap exhaustion on additional workloads. Our new guest successfully validates every benchmark case across all four gas limits.
This additional memory headroom is particularly valuable for Ethereum's scaling roadmap, as guest programs must accommodate increasingly demanding workloads within the memory constraints of their proving environments.
Minimal dependencies
The guest's core implementation consists of six Rust crates covering primitives, serialization, cryptography, the trie, the EVM and stateless block validation.
The core libraries use no_std with alloc. The ZisK-specific binary lives in its own workspace, isolating the zkVM runtime and its dependency tree from the rest of the implementation.
The documented ZisK guest dependency allowlist contains three direct external crates. Native cryptographic libraries and other Ethereum implementations are isolated within the testing and differential validation infrastructure.
This architecture establishes clear boundaries between the core implementation, the proving environment and the testing infrastructure. It allows ethrex's production execution client and its guest program to evolve independently, each with its own dependencies, optimization strategies and release cycles.
Approximately 30,000 lines of code
The result is a standalone implementation of Ethereum's stateless execution validation in approximately 30,000 lines of core Rust code.
A compact, standalone implementation
Implementation and supporting code
harness/loc.py in the original development snapshot. Counts refer to that snapshot; refresh for the final release. Public implementation.View the data as a table
The development snapshot measured for this article contains 29,805 lines of core logic and 38,106 lines of testing, benchmarking and supporting code. The latter includes host-only cryptography, test harnesses and profiling code. See the public workspace layout for the merged implementation.
A compact implementation makes the code easier to understand, review and audit. Combined with minimal dependencies and clearly defined module boundaries, it also reduces the implementation surface that must be considered during formal verification. These properties are particularly important for software that could eventually become part of Ethereum's critical verification infrastructure.
Correctness and interoperability
Maintaining independent implementations introduces responsibilities of its own. Both implementations must faithfully follow the same Ethereum execution rules and remain up to date as the protocol evolves.
Our guest implements the stateless validation interface defined by Ethereum's execution specifications and follows the interfaces developed through the eth-act zkEVM standards. It supports the Amsterdam execution rules and a BPO2 input extension, allowing us to evaluate upcoming protocol changes and real mainnet workloads.
The implementation has been tested against the execution specifications' stateless conformance fixtures, state tests and blockchain tests. Our testing infrastructure also performs differential testing against LEVM, revm and geth, and checks guest execution under ZisK's emulator.
In our documented main-branch implementation, all 33,864 stateless conformance inputs from [email protected] produce the expected public output. The benchmark candidate described below (c006b4c) has undergone the full validation gates, specification differentials, reviews and a security pass. The GPU measurements above used a build with byte-identical executable code (.text) to the benchmark ELF. Every proof generated for the two block samples was verified against the expected public output.
We have also implemented reproducible guest builds, allowing independent parties to rebuild the same executable from a given source revision using the pinned toolchain.
We are initially targeting ZisK. Supporting SP1 and OpenVM is part of our plans, and the separation between the core execution logic, cryptographic implementations and platform-specific code provides the foundation for those integrations.
The results
The Ethereum Foundation's working definition of real-time proving targets a latency of 10 seconds or less for at least 99% of mainnet blocks. In our initial mainnet sample, 81 of 99 blocks were proved in under 10 seconds. This demonstrates progress towards that latency target on a single GPU, with further work needed on the heaviest blocks.
In a separate sample of 100 Sepolia blocks, the median proving time was 6.16 seconds and all proofs were generated in under 10 seconds and verified. This window is dominated by a gas-burning loop for which our interpreter has a dedicated fast path, so these timings are specific to that workload.
Our guest achieves the lowest aggregate ZisK TOTAL cost among all six evaluated implementations at each of the four gas limits from 60M to 200M and in every benchmark category (EIP-7928, instructions, precompiles and scenarios). On the common set of 4,769 workloads, our previous ethrex guest requires 2.52× our aggregate cost, while Nethermind, the next-lowest-cost guest, requires 1.32×.
Relative ZisK TOTAL cost
View measured data
All six guests ran the same unmodified inputs from [email protected], on the same ZisK v1.4.0-alpha emulator (64a1f16). Every output was checked against the fixture's expected 43-byte output. Our benchmark candidate (c006b4c, ELF e489fcb8) successfully validated all 4,891 cases. The comparison uses the 4,769 cases validated by all six guests: Nethermind (fa90074a), reth (b7c14668), previous ethrex (11c42e2d), zesu (3bf2f368), Nimbus (fc83ce5d) and our new guest. Ratios divide the sum of each guest's cost by the sum of our cost on those identical cases.
Performance varies by workload; Nethermind has a lower aggregate cost in the instruction/storage benchmark group at each gas limit. Guests without comparable inputs or compatible builds are outside the scope of this comparison.
What's next?
We believe that Ethereum's zkEVM roadmap will increasingly benefit from treating guest programs as first-class software projects, with dedicated architectures, performance objectives and development cycles.
Our next steps include reducing proving latency, especially for the most demanding blocks, expanding our evaluation across real-world and adversarial workloads, extending support to other zkVMs and keeping the implementation aligned with Ethereum's evolving specifications.
Formal verification is another major direction for this project. As Ethereum moves towards proof-based execution validation, we need strong guarantees that the programs being proven faithfully implement Ethereum's execution rules.
By keeping our guest compact, isolated and minimally dependent on external libraries, we aim to make formal verification more tractable. Clear component boundaries provide a foundation for verifying individual components, establishing that optimizations preserve Ethereum's semantics, and ultimately relating the implementation and its compiled executable to the protocol specification.
At LambdaClass, we want to contribute across these layers. We want Ethereum to scale without compromising its decentralization or security. Efficient execution proofs, simple implementations and formally verified software are fundamental to achieving that goal.
Our new guest program is another step in that direction.
