specborn-evm for fuzzers #
specborn-evm runs Ethereum state tests through specborn's EVM and prints go-ethereum-style JSON traces and post-state roots, so that differential fuzzers (such as goevmlab) can run the same inputs through specborn and other EVM implementations and compare the results. Its command line and output follow go-ethereum's evm statetest, so goevmlab's geth adapter drives it unchanged. It is piece evmfuzz, merged into main on 2026-11-15 (STATUS.md); the handoff document for fuzzing teams is docs/pieces/evmfuzz/HANDOFF.md.
It is built with the node (lake build specborn-evm, see Installation) and is a separate executable: the node binary does not contain it.
.lake/build/bin/specborn-evm --help
Which EVM it runs #
- Cancun, Prague, Osaka, BPO1 to BPO5, Amsterdam: the shipped EVM, the same code the node runs, with its refinement proofs and test vectors (Security).
- Byzantium to Shanghai (
Byzantium,ConstantinopleFix/Petersburg,Istanbul,Berlin,London,Paris/Merge,Shanghai): a separate, tool-only EVM that the node never runs. It passes every state test of those forks in the pinned execution-spec-tests, but it is TESTED only, with no proof (open item OPEN-evmfuzz-7). A finding on these forks concerns the tool, not the node. - Older forks are not implemented: such an entry reports the all-zero root and an
unsupported forkerror.
Running it #
# one file, trace on standard error, without memory
specborn-evm --json --nomemory statetest test.json
# state root only
specborn-evm statetest test.json
# only the Osaka entries, first index
specborn-evm --json statetest --statetest.fork Osaka --statetest.index 0 test.json
# batch mode: one path per line on standard input
ls tests/*.json | specborn-evm --json statetest
Every flag is in the CLI reference. With goevmlab, pass the binary where goevmlab expects geth's evm (its batch mode works too); for quiet comparisons, fuzz Osaka (or Prague, Cancun) first: specborn's Amsterdam is the one of the pinned execution specifications, and other clients' devnet builds may differ from it.
Output: on standard error, one JSON line per operation (before it executes), a summary line per transaction and {"stateRoot": "0x…"} after every post entry; on standard output, per file, a JSON array of results (name, pass, stateRoot, fork, error). Exit status 0 for any run with valid arguments (a failing test is a result), 2 for a usage error. The details, including the known differences from go-ethereum that goevmlab reports (a Paris-or-later test without currentRandom, an empty account in the pre-state at Paris or later) and the format-only ones it ignores, are in docs/pieces/evmfuzz/HANDOFF.md §3 to §6.
Evidence #
- Every one of the 79,883 state tests of execution-spec-tests v21.0.1 (Byzantium to Amsterdam) through the tool: traces equal to go-ethereum
evmv1.17.7 in goevmlab's normal form, line for line (0 semantic differences over 104 million lines), state roots equal to the fixtures (docs/pieces/evmfuzz.md). TESTED. One known difference outside the per-operation trace: the final summary line (which goevmlab does not compare) differs from go-ethereum's for 197 Amsterdam entries. The 12 of them that were inspected (from 7 files) are transactions whose top frame fails under Amsterdam's new gas-charging rules, where the reportedgasUsedfollows a different accounting of the gas charged at the frame's start; the other 185 were not inspected one by one (docs/pieces/evmfuzz.md§4.6, OPEN-evmfuzz-4). - goevmlab's reference cases: state roots equal to the nine other clients' (
docs/pieces/evmfuzz/HANDOFF.md§5.2). TESTED. - Tracing changes no result: for every trace configuration, the tool's transaction run is the shipped transaction-processing entry point, and a post entry's reported result does not depend on tracing (
runTx_eq,runEntry_eq;docs/pieces/evmfuzz.md§3). PROVED.
If you find an input on which specborn's EVM disagrees with the specification, see Security: a consensus disagreement is a security issue.
Running the official fixtures instead #
The shipped EVM is also exercised by the official execution-spec-tests fixtures through the test runner, which needs the fixtures (scripts/fetch-fixtures.sh) and a build of the spectest executable:
lake build spectest
lake env .lake/build/bin/spectest evm # the shipped EVM against the fixtures
lake env .lake/build/bin/spectest elblock # whole-block execution on the EEST blockchain fixtures
Each suite prints one result line, NAME: passed=… failed=… skipped=….