USDC escrow on Arc that pays out only when two AI judges agree, verified on-chain byte for byte.
Verdict is an escrow for work that's hard to judge automatically. Say you're paying someone 50 USDC to write an article, fix a bug or hit some performance target. You lock the money on Arc along with a written rubric that says what "done" means. When the other person finishes, they submit their evidence.
Two AI models from different model families then judge that evidence against the rubric, and they don't see each other's answers. A third model checks whether their reasoning is actually backed by the evidence, and a fourth gives a confidence score. If both judges say yes, the reasoning holds up and confidence is above 85%, the contract releases the money. If they say no, the payer gets a refund. If they disagree or can't tell, nobody gets paid automatically. The escrow freezes and a named arbiter makes the call, and if the arbiter never does, the payer can take the money back after the deadline.
What we cared about most is that you don't have to trust our server. Every model reply is signed over the hash of the exact request and the exact response. The contract re-hashes those bytes itself, recovers the signer with ecrecover and checks it against an on-chain registry. It also checks that the prompt referenced this particular escrow, so a valid verdict can't be replayed on a different one. Change a single byte and the signature check fails.
We also added an x402 endpoint, so AI agents can pay 0.05 USDC per verdict and get back a signed verdict bundle they can verify themselves.
Being upfront: the signer is pluggable. We fully built and tested the path where 0G Compute TEE enclaves sign the verdicts, but we couldn't get enough 0G testnet tokens to run it live. The live demo runs on Arc testnet use a self-attested signer over Groq models, and both the dApp and the verifier label those runs clearly.
The contracts are Solidity with Foundry. There are three: SignerRegistry stores which keys are allowed to sign and for which model, VerdictOracle does all the verification, and VerdictEscrow holds the USDC and handles open, settle, arbitrate and refund. The oracle is stateless and pretty minimal: two SHA-256 hashes, EIP-191, ecrecover, a check that the prompt contains the escrow's rubric and evidence hashes, and the quorum rules. We didn't want a JSON parser on-chain, so the prompt forces every model to start its reply with a fixed-width header like "VERDICT:Y;CONF:0.93;RUBRIC:0x…;EVID:0x…", and the contract reads it by byte offset. We have 20 Foundry tests covering tampered bytes, cross-escrow replays, revoked signers, the same model posing as two judges, and so on.
The relayer is written in TypeScript on Bun with viem. Its main job is keeping the exact request and response bytes, since the signature only works on exactly what was hashed. It also checks everything locally before spending gas. One bug we hit: reasoning models sometimes quote a draft "VERDICT:" line inside their thinking field, so the relayer now rejects any reply where the first header in the raw JSON isn't the real one.
For x402, it turned out Arc's USDC supports EIP-3009 (transferWithAuthorization), so our API acts as its own facilitator. It verifies the signed authorization and submits it on Arc.
The frontend is a single HTML page using viem, with no build step. You can open escrows, submit evidence, act as the arbiter, and paste in any settle transaction to verify it yourself in the browser. It re-hashes every attestation and shows you who signed.
The most hacky part was the 0G integration. The docs didn't match what the TEE actually signs, so we read the 0G broker source code (signChatWithKey) and found it signs sha256(request):sha256(response) as an EIP-191 message. That's why we call providers directly instead of going through the router, because the router rewrites the request and the hashes wouldn't match anymore.
Partner tech: Arc for USDC escrow and gas, Arc Studio (it cloned the repo and ran our 20/20 tests), 0G Compute TeeML for the enclave signer path, and Groq for the free models used in the live runs.

