Read any contract’s storage at a past block.

Ferrotype proves a storage slot from the block header down, with one Fe codebase that runs in a contract, a native CLI and this page.

Contracts live on Sepolia · same verifier on EVM, native and WebAssembly · 343 vectors · 1,000,000 damaged proofs, 0 wrong answers

Loading the Fe verifier…
 

Fetch. Check. Read.

Ferrotype starts from a block hash you already trust. Everything under it is recomputed from bytes any node can hand you.

01

Fetch

The block header from eth_getBlockByNumber and the account and storage proofs from eth_getProof, from any node. The bytes are checked, never believed.

02

Check

The header must hash to the block hash. Every node must hash to the 32-byte reference its parent holds, from the state root down, and the account leads to its storage root.

03

Read

The slot’s value, or a proof that it is empty: a branch with nothing in the slot the key asks for, or a leaf that holds another key.

One verifier, three runtimes.

The same Fe library builds into a contract, a native command-line tool and the WebAssembly module that checked the read above.

contract · EVM

In a contract

fe build
StateReader, live on Sepolia
402tests
CLI · native

On your machine

fe build --backend native
talks to any node
373tests
browser · WebAssemblythis page

In this tab

ferrotype.wasm
377checks102,909 bytes
#[cfg(target = "evm")]
pub fn keccak(_ data: MemSpan) -> u256 {
    std::evm::keccak256(data)
}

#[cfg(target = "native")]
pub fn keccak(_ data: MemSpan) -> u256 {
    core::hash::keccak256_word(data)
}
The only target-specific code in the library.Fe 26.6.0 (5b3f96a)

48% less gas than the audited verifier.

Execution gas per read, measured on the same mainnet proofs for every verifier.

VerifierRead a slotProve a slot is empty
Ferrotype178,338166,243
Lidoaudited344,979314,531
OptimismBedrock, audited514,491cannot
Curve curve-xdaopatched, 2025597,272546,255
48% less than Lido and 65% less than Optimism per read. A full read transaction with packed proofs costs 314,965 against Lido’s 485,611.
Among verifiers that reject a proof that stops early, Ferrotype costs 70% less than Curve’s patched one and 65% less than Optimism’s.
Optimism’s verifier cannot prove an empty slot or a missing account at all.
Checked arithmetic stays: unchecked would save only 1.0%. The observer hook costs 0.14% (1.5% without the const gate).
Soundness

An early stop is not a zero.

Lido’s verifier accepts a proof whose node list stops early after a branch node and reads the slot as zero. Roman Agureev (Curve) found this class of bug in March 2025 and ChainSecurity coordinated its disclosure; Curve’s patched copy rejects it, and so does Ferrotype.

ChainSecurity’s write-up

Governance by any ERC-20, counted at a past block.

Plebiscite is a treasury whose vote weight is the voter’s balance at the proposal’s block, read from the token’s own storage. USDC has no checkpoints and needs none.

Rules, all tested
  • Tokens moved after the snapshot don’t count twice.
  • A USDC-blacklisted holder can’t vote.
  • A second vote is refused.
  • Someone else’s proof is refused.
  • A proposer needs a share of the supply at the snapshot.
  • Execution waits out a timelock, then expires.
  • Only Execute can move treasury funds.
Vote { id, support, balance_proof } -> u256 uses (ctx, layout_kind, balance_slot, mut ledger, mut log)
Execute { id, data } -> bool uses (ctx, mut call, quorum_bps, timelock, grace, mut ledger, mut log)
Each message names the effects it may use. No other message lists call, so only Execute can move funds.
Live on SepoliaBuilt with Fe 26.6.0 and deployed as is. Their views answer anyone, no wallet needed.
Ask it for a holder’s voting power

Checked, not trusted.

A verifier is judged by what it refuses. This is what Ferrotype was put through.

1,000,000

damaged mainnet proofs, 0 wrong values999,321 rejected · 679 still prove the true value (679 of them left unchanged)

343

vectors generated from the reference implementation

300/300

fuzz rounds where the EVM and native builds reach the same verdict

Amsterdam

Sepolia’s headers with their two new fields, handled

0

uses of unsafe in the library

TestsEVM402native373WebAssembly377