specborn documentation contents ↓

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.

runnable offline; checked by scripts/docs/check.sh
.lake/build/bin/specborn-evm --help

Which EVM it runs #

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 #

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=….