A block builder with far less inside the TEE.
A block builder that runs in a TEE asks you to trust whatever is inside it. Usually that is a whole Linux image: a kernel, a C library, OpenSSL, an execution client and the builder. We wanted to see how small the inside could get. So far the answer is one 4.2 MB program with no operating system under it, and it has been bidding on mainnet from Google Cloud since late November 2026.
This is the short report. The full record has every number and how each one was measured.
The node stays outside
The program inside the TEE (the guest) is a single EFI binary running in an Intel TDX virtual machine. There is no kernel, no libc, no shell and no file system, and it listens on one TCP port. The network driver, TCP/IP, DNS, TLS 1.3, the EVM, the state trie, BLS signing and the builder are all written in Lean and compiled into that one file. About 0.8% of it is C, and none of that C parses anything that comes from the network.
Lean is a memory-safe language. That is all we mean by it here. The builder is not formally verified.
It can be this small because the Ethereum node is not inside. An ordinary machine outside the TEE, which we call the feeder, runs reth. It sends the guest pending transactions along with Merkle proofs of the state they touch. The guest checks the proofs, builds a block, signs the bid with a key it generated inside the TEE, and posts it to the relays over its own TLS connections. It does this about three times a second.
To send it a private transaction, you encrypt the transaction to the guest's key (HPKE). The feeder carries it to the guest but can't read it.
Where the 4.2 MB goes
| Part | Size | Share | Who wrote it |
|---|---|---|---|
| Builder, EVM engine, trie, TLS, relay client | 1.54 MB | 38% | This project, in Lean |
| Lean's standard library | 1.32 MB | 32% | The Lean project |
| Jaune, an EVM specification in Lean | 0.76 MB | 19% | A third party, forked here |
| Network drivers, TCP/IP, DNS | 0.37 MB | 9% | This project, in Lean |
| Start-up code and constants | 0.06 MB | 1.5% | Compiler and linker |
| C | 0.03 MB | 0.8% | This project |
Two caveats on that table. First, compiled Lean calls small C helpers from Lean's own header for things like reference counting. We count them as Lean, but they make up about 70% of the machine code compiled from our Lean and Jaune's. Second, the firmware is not in the 4.2 MB. It sits under the guest the whole time. The firmware we build for our own machine is another 4 MB, and Google's can't be inspected.
For scale, the TDX image BuilderNet published for v1.6 in December 2025 is a 326 MB disk image, about 78 times larger. That is not a like-for-like comparison. A disk image has empty space in it, and theirs runs two full clients inside the TEE, which ours does not. What matters is how much code has to be correct for a transaction to stay private, and a file size only hints at that.
Bidding in nearly every slot since 26 November
The guest runs on a Google Cloud TDX machine (c3-standard-4,
us-central1, about 23 cents an hour) and bids to Flashbots, Ultrasound, Aestus and Titan.
From 26 November 23:53 UTC to 1 December 04:47 UTC it sent a bid in 29,807 of 30,271 slots, which is 98.5%. Nearly all the slots it missed were ones where the proposer was not registered with any of those four relays. It sent 667,543 blocks in that time. Our own reth node checked each one afterwards and found all of them valid.
Five of its blocks are on mainnet
| Block | When | Built on | Why it won |
|---|---|---|---|
| 26463293, 26465583, 26470277 | 21 and 22 Nov | Our own TDX machine | We paid the proposer 0.02 ETH each time |
| 26513991 | 28 Nov | Google Cloud | We paid the proposer 0.01 ETH |
| 26532817 | 1 Dec | Google Cloud | Nothing was paid |
"Paid" means a test wallet of ours added a tip for the proposer so the bid would win. Those four blocks show that the plumbing works: relays accept the blocks, proposers sign them, and they are valid on chain. They say nothing about whether the builder can compete. The payment was signed by the feeder, not by the guest.
Two of the first three blocks each carried a transaction that was encrypted to the guest. We sent those transactions to ourselves, so they show the mechanism works end to end and not that it holds up against an attacker.
The last block is the interesting one, because nobody paid for it. It was a 0.0027 ETH bid in a quiet slot, made up of 156 transactions from the public mempool. Flashbots' relay lists it as delivered. It was not the highest bid the relay received for that slot. Ten other builder keys bid more, up to 0.0031 ETH, and we can't tell from public data why the proposer ended up with ours. It is one win in about 29,650 slots.
It is a long way from competitive
It only sees the public mempool. It has no private order flow, no bundles and no blob transactions.
- Block value. We compared its bids with the blocks proposers actually took, twelve times over different periods. At the median its block was worth 18% to 45% of the winner. Summed over all slots it was 4.5% to 31%, because the slots that pay well are where it falls furthest behind. Over a full day on Google Cloud the figures were 45% at the median and 13% summed.
- Timing. Its last bid of a slot reaches a relay about 0.6 seconds after the slot starts. The bids that win usually arrive a second or more into the slot. Bidding later does help. When we moved the last bid about 1.5 seconds later, it was worth about 12% more.
- Speed. It runs on one core and builds one block at a time. Each round trip through the feeder and the guest takes about a third of a second.
What you have to trust, and what you don't
On Google Cloud you trust five things:
- Intel. The processor, the TDX module and the quoting enclave. The guest's keys come from the processor's random number generator.
- Google's firmware. It is measured, and Google signs the measurement, but nobody outside Google can build it or read it. It shares the guest's address space the whole time. On your own hardware you can build the firmware from source.
- The 4.2 MB image. It builds to the same bytes from source, and its measurement is in the attestation quote.
- Four certificate authorities. Their roots are built into the image so it can check the relays' TLS certificates.
- The toolchain. The Lean compiler and the C compiler and linker it ships with.
The cloud host (apart from its firmware), the network and the feeder are not trusted with the bytes of an encrypted transaction. Any of them can still stop the builder from working.
The relays see every block in full before a proposer signs for it. That is true of every builder that bids through relays.
What is missing or weak
- It is new and unreviewed. The first commit is from 16 November 2026. The network stack, the TLS and the cryptography are all new code. Nobody outside the project has read it, and it has not been fuzzed.
- Nothing about the builder is proved. It is tested. The EVM engine passes Ethereum's execution test suites (4,723 files), the cryptography is checked against OpenSSL, and every block is checked against reth.
- A fifth of the image is third-party code we have not reviewed. Jaune still does the decoding of blocks and transactions, sender recovery and the precompiled contracts.
- There is no memory protection inside the guest. Code pages are writable and data pages are executable. The only exception is a guard region under the stack. Lean's own bounds checks are what stand in the way of a bug.
- There is one feeder, on a home connection. If it goes down, the builder stops.
- A restart means a new key. The guest generates its key at boot, and the published record of that key is updated by hand.
- Some transactions are skipped. It leaves out blob transactions and calls to the BLS12-381 and point-evaluation precompiles, because the guest runs those too slowly.
- Side channels are mostly unaddressed. Only the lowest layer of the BLS key arithmetic was written to be constant-time.
- Certificate revocation is not checked, and the guest takes the current date from the feeder.
The threat model covers these at length.
From a bid on a relay back to the source code
- Find its bids. Flashbots, Ultrasound and Aestus publish the bids they
receive. Look for the builder key
0x96b099d9…928e3604. The full key and a ready link are in builder.txt. - Check that the key belongs to the guest. The live page verifies the guest's TDX quote in your browser and shows that the quote commits to that key.
- Check that the guest is this program. Build the image from the commit named in builder.txt and you get the same file, byte for byte. A GitHub workflow does this whenever that record changes and checks the quote against what it built.
- Send it something. The send page encrypts a transaction to the guest's key after checking a fresh quote. Anyone can use it. So far nobody outside the project has.
One limit: the live page takes the expected measurement
from a file we publish. For a check that does not rely on us, run
scripts/gce-check from the repository. It follows the quote's signatures to Intel's
root, asks Intel whether the platform is up to date, and checks Google's signature on the
firmware.
Build the image
You need x86-64 Linux and Lean, installed through elan.
git clone https://github.com/posix4e/cluck && cd cluck/evm # fetch mathlib's prebuilt modules first: the command is in evm/README.md lake build scripts/build-efi tdx # .lake/build/efi/tdx/evm-os/BOOTX64.EFI
Running it needs a TDX machine, either your own or one on Google Cloud. Feeding it needs a synced reth with a small patch, and a beacon node. The steps are under "Reproduce it" in the full record.