Blanc proves properties of deployed Ethereum bytecode
Verifying deployed bytecode against executable EVM semantics, with exact gas and no added axioms · arXiv:2610.19764
In plain words
The paper introduces Blanc, a method for proving facts about the exact code running in an Ethereum contract. A helper proposes a readable map of the code, and Lean’s trusted checker compares that map with the deployed bytes before proofs use it.
The authors prove, among other results, that an Ethereum withdrawal-request contract’s end-of-block call succeeds and returns the oldest pending committed submissions in order, up to 16 per block. Each returned submission paid at least the fee computed by the bytecode, when the stated assumptions hold. The work covers eight deployed artifacts, not every contract.
The research
Can a contract’s proof still be trusted if its compiler changed what gets deployed? Ethereum nodes execute bytecode, and the 2023 Curve incident showed how a compiler defect could make a shared source-level lock behave differently in the deployed code. Source-only reasoning can miss that gap.
Blanc checks a structured reading of deployed bytecode against the actual bytes, then proves contract properties over an executable EVM model.
For the EIP-7002 withdrawal-request contract, they show its end-of-block call succeeds and returns the oldest pending committed requests in order, up to 16 per block. Each returned request comes from a committed submission that paid at least the fee computed by the bytecode. This holds under stated premises, and the bytecode-computed fee need not match the EIP fee.
The proofs depend on stated assumptions, and the paper has not checked the live storage needed to connect several older contracts’ theorems to their current mainnet states. Its eight artifacts demonstrate coverage, not that every contract can be verified.
What the evidence shows
- Why prove the deployed code
Blanc is a Lean 4 method for proving properties of deployed Ethereum contract bytecode. The paper focuses on a gap in source-level proofs: if a compiler changes how source instructions behave in the deployed bytes, a proof that trusts the compiler may miss the defect.
The 2023 Curve incident illustrates this risk: functions marked with one shared lock did not receive the intended shared lock in vulnerable compiled code.
- How Blanc checks bytes
Blanc has an untrusted program propose a structured reading of the bytecode. Lean’s kernel checks that reading against the literal bytes, including how instructions correspond and how stack changes and jumps are handled.
General theorems then connect executions of the checked reading to executions of the actual bytecode, so contract-specific reasoning can establish properties of the deployed code rather than relying on a source-to-bytecode link.
- What supports the proofs
The proofs use Jaune, an executable formal model of the Ethereum Virtual Machine and block processing. Jaune passed 34,205 selected blockchain-test cases from 5,006 files, covering fixtures for Prague, Osaka, BPO1, and BPO2.
This supports the model’s agreement with those tests, but does not establish that the model is identical to Ethereum or that every format in the fixture release was tested.
- A protocol contract result
For the EIP-7002 withdrawal-request contract, Blanc proves that the end-of-block system call succeeds and returns the oldest pending committed requests in order, up to 16 per block, under stated premises. Each returned request comes from a committed submission that paid at least the fee computed by the bytecode; that fee need not match the EIP fee.
The result shows how the method can address behavior of protocol code that a block depends on, while keeping its conditions explicit.
- Examples and an observed check
The Curve examples show Blanc applied to two deployed versions: Jaune executes a reentrant attack on the vulnerable bytes, while Blanc proves a scoped lock-exclusion property for the fixed bytes. Separately, all 3,748 selected WETH9 withdrawal receipts matched a proved gas formula on BPO2.
That receipt comparison checks predictions against observed charges, but is not part of the proof and does not establish its other assumptions.
Deep
- Original paper authors
- Seulkee Baek
- Submitted to arXiv
- License
- arXiv non-exclusive