cluck

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.

4.2 MBthe whole guest, one EFI program. No kernel, no libc, no shell
98.5%of slots get a bid from it, about twenty bids a slot
5 blockson mainnet. Four were paid for, one was not
2 weeksold, and nobody outside the project has reviewed it
How it works

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.

What is inside

Where the 4.2 MB goes

PartSizeShareWho wrote it
Builder, EVM engine, trie, TLS, relay client1.54 MB38%This project, in Lean
Lean's standard library1.32 MB32%The Lean project
Jaune, an EVM specification in Lean0.76 MB19%A third party, forked here
Network drivers, TCP/IP, DNS0.37 MB9%This project, in Lean
Start-up code and constants0.06 MB1.5%Compiler and linker
C0.03 MB0.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.

What it has done

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

BlockWhenBuilt onWhy it won
26463293, 26465583, 2647027721 and 22 NovOur own TDX machineWe paid the proposer 0.02 ETH each time
2651399128 NovGoogle CloudWe paid the proposer 0.01 ETH
265328171 DecGoogle CloudNothing 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.

How it compares

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.

Trust

What you have to trust, and what you don't

On Google Cloud you trust five things:

  1. Intel. The processor, the TDX module and the quoting enclave. The guest's keys come from the processor's random number generator.
  2. 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.
  3. The 4.2 MB image. It builds to the same bytes from source, and its measurement is in the attestation quote.
  4. Four certificate authorities. Their roots are built into the image so it can check the relays' TLS certificates.
  5. 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 feeder is the weak point. It runs outside the TEE and nothing measures it. It decides which public transactions the guest sees, and it tells the guest what the head of the chain is. The guest checks state proofs against that header but does not follow the chain itself. The feeder also picks every other transaction in a block, and it can ask for as many blocks as it likes. It can't read an encrypted transaction, but by placing its own transactions around one and watching the bid values that relays publish, it could probably learn a lot about what that transaction does. Nobody has tested how much. Until someone does, the claim here is "far less inside the TEE", and not "less to trust overall".

The relays see every block in full before a proposer signs for it. That is true of every builder that bids through relays.

Known problems

What is missing or weak

The threat model covers these at length.

Check it yourself

From a bid on a relay back to the source code

  1. 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.
  2. 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.
  3. 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.
  4. 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.

Run it yourself

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.