Reading the record
Proving the record
The record API adds up an agent's fills from logs, and checking its numbers means running the record code against an archive node. The zkVM record proves the same totals from Robinhood Chain storage, against a block Ethereum has confirmed, as one Groth16 proof that SP1's verifier on Base accepts.
What is proven
The program reads a block header and the storage proofs for that block. It checks that the header hashes to the block hash and that every value it reads matches the block's state root, then computes the record from those values only. It is given no list of trades: for every client it counts, every fill in the router's stats is in the record, good or bad.
- Clients
- Every client the ERC-8004 Reputation Registry lists for the agent. Those that installed router v3 for the agent are counted.
- Fills
- For each counted client, every router v3 stats entry of the agent: every asset, every size bucket, regular and extended sessions. Fills, notional, total cost against the market and the worst fill, with fills whose registry write failed counted too.
- Profit and loss
- The realized profit and loss in the router's books, and gains booked but still held.
- Own accounts
- The same totals for counted accounts whose owner in the Kernel ECDSA validator, at that block, is the agent's identity owner or its agent wallet.
- Context
- The block hash, number and time, the router, registry, identity and validator addresses, the router's and validator's code hashes, the registries' implementations and the digest of the asset list.
The result is committed as abi.encode of 33 words (1,056 bytes), version 1, so a Solidity contract can read it as it is.
The block
Each proof is made at the Robinhood Chain block of the newest assertion confirmed in the rollup contract on Ethereum (0x23A19d23e89166adedbDcB432518AB01e4272D94), and that block hash is checked against the rollup's outbox roots. The record is therefore as of a confirmed block, not the head: on 30 Nov 2026 the newest confirmed block was about six and a half days behind.
Proving
The program runs in SP1 6.10.0. Proofs come from the Succinct Prover Network as Groth16 proofs, paid in PROVE. A record of agent 26144 takes about 10 million cycles, and its proofs so far took under a minute on the network.
- Program key
- 0x0067d4d97ef0fdbbb0d9c37a2b6ae7b46de18d717892c2db539cce8046476b48
- Program file
- sha256 6d447afbf63b5e13d991eb108489f669f39c732367deab106bb75ae511ac71ba
- Verifier on Base
- 0xb69f2584CBcFf99a58C4e7002E8b89Af54a6f4e2
The verifier is SP1VerifierGroth16 v6.1.0, the one matching SP1 6.10. It has no owner and cannot be upgraded.
Checking a proof yourself
Published proofs are in zk/proofs in the repository, each with the program key, the committed record, the proof bytes and the confirmed assertion its block comes from. One script checks a proof and prints the record it proves:
cd record && npm ci
RPC=<robinhood archive url> L1_RPC=<ethereum url> BASE_RPC=<base url> \
npx tsx test/zkverify.ts ../zk/proofs/<file>.json- On Base
- The verifier accepts the proof for the program key above, and refuses it with one byte of the record changed.
- On Ethereum
- The assertion named in the file was confirmed with the committed block hash, and the rollup's outbox holds it.
- On Robinhood Chain
- The committed contracts are router v3, the ERC-8004 registries and the Kernel ECDSA validator, and the asset list is every token FillmarkFeeds registered up to the block.
The proof alone says only that the record follows from the state of a block with the committed hash. The checks on Ethereum and Robinhood Chain make it Fillmark's record of a confirmed block, and a contract reading a proof has to make them too.
The program key comes from the program file, and the program file rebuilds the same from source with SP1's Docker image:
cargo prove build --docker --tag v6.10.0 --locked --workspace-directory .. \
--output-directory elf --elf-name fillmark-record
sha256sum elf/fillmark-record
cd .. && cargo run --release -p fillmark-zk --features sp1 -- vkeyScope
- Router
- Router v3 only. Fills through the retired routers v1 and v2 are not in it.
- Clients
- An account enters the registry's client list with its first accepted feedback. The registry refuses feedback from an account the agent's owner approved as an operator, so the owner can keep an account out of the list, and out of the agent's ERC-8004 record, from its first fill. Router v3 keeps no list of accounts in storage, so the proof cannot see such an account. Each of its fills emits FeedbackFailed, and the record API shows them.
- Assets
- The asset list is an input whose digest the proof commits. Before each proof it is checked against every token FillmarkFeeds registered up to the block (the feeds are add-only).
- Registries
- The registries can be upgraded by their owner, which is why their implementations are committed; a new implementation may need a new program.
- Program file
- A build outside SP1's Docker image gives a different file even with a toolchain of the same version, so the image (digest sha256:9363a700…) is the reference.