EVM bytecode
Also known as EVM, Ethereum Virtual Machine
The bytecode executed by Ethereum and compatible chains; every smart contract ends up here.
What do you want to prove about your EVM bytecode code?
Where proofs can attach
Toolchains that verify EVM bytecode directly, and those that verify what it compiles to. A proof about compiled code also relies on the compiler that produced it.
- Compiled from Languages that compile to EVM bytecode
- This IREVM bytecode
Verify EVM bytecode directly
Ranked by stage, feature coverage and trust.
| Toolchain | Stage | Trust | Effort | Feature coverage |
|---|---|---|---|---|
| Kontrol Write properties as Foundry tests in Solidity; Kontrol checks them for all inputs by symbolically running the compiled EVM bytecode on KEVM. | Stage 2 · Production | 3/5 | Auto-active | 1/4full, 3 partial |
| Certora Prover Write rules and invariants in Certora's spec language (CVL); an SMT-based prover checks them against your contract's compiled EVM bytecode. | Stage 2 · Production | 2/5 | Auto-active | 1/4full, 1 partial |
Feature coverage
Which language features each toolchain handles. Hover or focus a mark for the note and source. Toolchains on compiled code are shown for common features only.
| Feature | Kontrol | Certora Prover |
|---|---|---|
| EVM-specific features | ||
| GasGas accounting and out-of-gas behavior. | Kontrol, Gas: Partial.Gas is not computed by default; the --use-gas flag turns on KEVM's gas model. Source | Certora Prover, Gas: Unknown.The docs we read do not describe gas accounting. |
| StoragePersistent contract storage. | Kontrol, Storage: Supported.Storage can be made fully symbolic with the symbolicStorage cheatcode. Source | Certora Prover, Storage: Supported.Specs can read storage and track writes with hooks and ghost variables. Source |
| External callsCalls to other contracts, including reentrancy. | Kontrol, External calls: Partial.Calls into contracts deployed in the test run on KEVM, so reentrancy through known code is covered. We found no documented way to model arbitrary unknown callee code; the docs suggest mocking external calls (mockCall). Source | Certora Prover, External calls: Partial.Calls to contracts in the verification scene are resolved. Calls to unknown contracts are replaced by summaries; the default for ordinary calls (HAVOC_ECF) assumes the callee does not re-enter the caller, which the docs call unsound. HAVOC_ALL is sound but must be chosen. Source |
| PrecompilesBuilt-in contracts such as hashing and elliptic-curve operations. | Kontrol, Precompiles: Partial.KEVM computes precompiles only on concrete inputs, and Osaka's P256VERIFY precompile is missing. Source | Certora Prover, Precompiles: Unknown.Not described in the docs we read. |
Supported Partial Not supported Unknown
Formal semantics of EVM bytecode
Models that proofs about EVM bytecode can be stated against. See formal semanticsFormal semantics. A precise, mathematical definition of what programs in a language do..
- EVMYulLean Stage 1 · Validated
An executable model of the EVM (Cancun fork) and of Yul, the Solidity compiler's intermediate language, in Lean 4 by Nethermind. The EVM part passes almost all Cancun conformance tests.
- KEVM Stage 1 · Validated
An executable formal semantics of the Ethereum Virtual Machine written in the K framework. It runs the Ethereum conformance tests and is the model behind Runtime Verification's Kontrol.