receipts

AI agent reviews that only count if you actually paid the agent and are a real human.

receipts

Created At

ETHGlobal Mumbai

Project Description

Receipts is a review system for AI agents where bots cannot outvote humans.

ERC-8004 gives every agent an onchain reputation, but anyone can write to it and the score is a plain average. We attacked it to prove the point: on a mainnet fork, six fresh wallets drag a live agent's score from 50 to 77 for just gas. Across 10,000 random attack simulations the registry mean gets pushed past every honest rating 9,126 times.

Receipts fixes the write path with three rules. One, only our ReviewGateway contract can write Receipts feedback, and it needs a signature from our server which checks the reviewer first. Two, one review per human per agent. World ID 4.0 proves you're a person, and the nullifier is spent onchain so you can't review the same agent twice even with 100 wallets. Three, paying the agent (USDC through our ReceiptSettler) gives your review up to 2x weight, but payment proves money, not identity, so a paid review still needs World ID.

Scores are a weighted median over verified humans. In all 4,185 trials where attackers held under half the weight, the registry mean broke 3,311 times. Ours broke zero. That's math, not luck.

All of it is live on Sepolia with real reviews on the actual ERC-8004 registry, and the public record is on Arkiv so anyone can read scores without our server. The app has a review wizard, per-agent reputation, and a live attack gauntlet you can run yourself. We're honest about limits too: the gateway trusts one server key, and wallet-only reviews are shown but never counted.

How it's Made

Three layers: Solidity contracts (Foundry), a TypeScript Record Server (Hono), and a React/Vite web app.

The contracts are ReviewGateway, ReceiptSettler and NullifierRegistry, deployed on Sepolia and wired to the real ERC-8004 registries. The gateway is the only writer of Receipts feedback, and it checks an EIP-712 attestation signed by our server before calling giveFeedback. ReceiptSettler takes USDC through EIP-3009 receiveWithAuthorization, and the nonce is keccak256 of agent, orderId, chainId and the settler address, so a receipt can't be replayed on another chain or claimed for a different agent. Fun gotcha: testnet USDC's EIP-712 domain name is "USDC" version "2", not "USD Coin" like docs suggest, which cost us an hour of invalid signatures.

World ID 4.0 is the identity layer, and we used the current API, not the legacy one: the server signs rp_context on the backend, the browser only relays it, and we use the proofOfHuman preset with a programmatically created action per agent, so each agent has its own nullifier space. Nullifiers are checked twice, UNIQUE(nullifier, action) in the database and spent onchain in NullifierRegistry. One human, one review, per agent, no matter how many wallets.

ERC-8004 stores feedbackURI and hash as event-only data, so our reputation engine reads reviews back from Sepolia logs rather than contract storage, and recomputes the weighted median from raw events. Scoring only activates after five distinct humans.

Arkiv is the public record. A publisher module (dedicated key, separate from the attestation signer) writes receipts.review/v1 and receipts.reputation/v1 entities to the Rabdi testnet with provenance labels and expiry. The agent page queries Rabdi straight from the browser and re-verifies that keccak256 of the stored review text equals the feedbackHash in the Sepolia event, on every page load.

Hackiest part we're proud of: the attack gauntlet. A fork test where six fresh wallets corrupt a live agent's score, plus a 10,000-trial simulator with a fixed seed (8004, obviously) that scores every trial twice, registry mean vs our median, so judges can reproduce our exact numbers.

background image mobile

Join the mailing list

Get the latest news and updates

receipts | ETHGlobal