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
Fetch. Check. Read.
Ferrotype starts from a block hash you already trust. Everything under it is recomputed from bytes any node can hand you.
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.
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.
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.
On your machine
In this tab
#[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)
}
48% less gas than the audited verifier.
Execution gas per read, measured on the same mainnet proofs for every verifier.
| Verifier | Read a slot | Prove a slot is empty |
|---|---|---|
| Ferrotype | 178,338 | 166,243 |
| Lidoaudited | 344,979 | 314,531 |
| OptimismBedrock, audited | 514,491 | cannot |
Curve curve-xdaopatched, 2025 | 597,272 | 546,255 |
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-upGovernance 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.
- 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
Executecan 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)
call, so only Execute can move funds.- StateReader0x32d2…822c
- Plebiscite · DemoToken0x5bf1…c70b
- DemoToken0xa7db…ffed
- Plebiscite · USDC0xf176…3d50
Checked, not trusted.
A verifier is judged by what it refuses. This is what Ferrotype was put through.
damaged mainnet proofs, 0 wrong values999,321 rejected · 679 still prove the true value (679 of them left unchanged)
vectors generated from the reference implementation
fuzz rounds where the EVM and native builds reach the same verdict
Sepolia’s headers with their two new fields, handled
uses of unsafe in the library