Proof of Field
Any farm sells deforestation proofs. Agents buy.
Created on 12th September 2026
•
Proof of Field
Any farm sells deforestation proofs. Agents buy.
The problem Proof of Field solves
The problem
Six trading companies move most of Brazil's soy and beef, and each one clears thousands of farms per season. Every market now asks for the same thing, per farm: proof that the land did not deforest after 2020 and does not sit on indigenous or protected land. The EU requires it by law (EUDR, importer liable), banks require it for credit, and China, the largest buyer, is moving to the same baseline.
A trader checks a supplier before signing a purchase contract, again every season (INPE's map changes yearly), and once more when assembling the export dossier. Today a paid checker sits in the middle: e-mails to each supplier for the CAR and maps, a due-diligence vendor paid per farm, PDFs nobody outside can verify. Weeks. The farmer hands the entire farm map to a stranger, again for every buyer, and works for free.
Where the middleman's work goes
The checker does four things, and each goes away for a different reason:
| The checker's job | Today | With Proof of Field |
|---|---|---|
| Collecting the farm's papers | e-mails, PDFs, the whole map sent to a stranger | the buyer's agent fetches the proof; the map never leaves the farm |
| Running the check | a vendor crosses the map with government data, per farm, per fee | open-source software on the farm's side crosses the official CAR polygon with the same public government data |
| Being trusted | you trust the vendor's PDF | nobody has to be trusted: inputs are public, the stamp is on a public registry, anyone can recompute and verify |
| Doing it again per buyer, per season | every buyer asks again, paid every time | signed once, reused by every buyer; the farm is paid per use |
Like a passport instead of a fresh notary letter for every trip. What remains is thin and replaceable: someone vouches that a key belongs to the farm (today the buyer's own supplier onboarding; next a co-op, a bank, or gov.br).
Who talks to whom (there is no marketplace)
- Farm side: the key is the login. No account, no password: the farmer agent holds the farm's key like a wallet. Properties are imported once from SICAR (the farmer's own CAR export by CPF). Small farms: the cooperative hosts the agent and the farmer authorizes from a phone.
- Buyer side: a trader, bank or co-op already has contracts with its suppliers. At onboarding it registers each supplier's agent address, like a bank account, and allow-lists the key. Its agent asks those suppliers, nobody else, and the compliance desk ticks exactly which properties to verify this run. An unknown key is refused, even with a valid proof.
- On-chain: one registry, no owner: the hash of every attestation, who anchored it, revocations. Payments in stablecoin through the buyer's AgentWallet, with limits.
What Proof of Field does, step by step
- The farmer selects a registered property (CAR, Brazil's public rural registry; the official polygon, so the deforested corner cannot be drawn out). Signing the same property again supersedes the previous listing.
- The farmer agent intersects it with INPE/PRODES deforestation polygons, FUNAI indigenous lands and ICMBio/MMA conservation units (Rondônia, Mato Grosso, Goiás across the Amazon and Cerrado biomes; ~103k polygons, under a second) and signs an EIP-712 attestation once: CAR number, area, hectares deforested after 2020, hectares inside blocking protected areas, verdict, source, timestamp. Properties outside the loaded data are refused: absence of data is not absence of deforestation.
- Only
keccak(polygon)and the attestation hash are anchored on HSK Chain. The geometry never leaves the farmer's machine. - Before contracting, the buyer's compliance desk ticks the properties to check and types one sentence ("verify these suppliers before we contract the harvest; budget 30 USDT; reject deforestation after 2020 or protected land"). The buyer agent is a Claude model with tools: list the selected proofs, read the on-chain registry, read its own spending policy, buy over x402 (HTTP 402), skip with a reason, write the dossier. Its decisions stream into the desk as a timeline; the dossier renders underneath. It pays USDT through the company's AgentWallet (daily limit, per-payment limit, allow-listed suppliers, enforced on-chain) and verifies each proof independently: signature → same farmer anchored it → not revoked → registered CAR → onboarded supplier. Next season and at export, the same proofs are reused.
In the demo on HSK testnet: two farmers, four real CAR properties from Rondônia (one clean, two with post-2020 clearing, one from a supplier the trader never onboarded). The agent buys the clean one, refuses the other three with written reasons, and the farm is paid the moment its proof is used. The model decides; the contract enforces.
Why Ethereum
- Machines don't have bank accounts. A stablecoin is the only way one program pays another automatically, to any farm anywhere.
- Public registry → any buyer, bank or auditor verifies without trusting the farmer, a certifier, or us.
- AgentWallet → a company funds an agent once, sets a policy and a supplier allow-list, and never hands over its keys. A prompt injection can at most make the agent skip a purchase; it cannot pay a stranger or exceed the policy.
The check is SQL, and we run it locally. The trade is not: two companies that don't trust each other, two programs paying each other, and an AI holding money it cannot misuse.
Adoption path
Cooperatives first (one compliance desk answering for hundreds of member farms, to every buyer, every season), then banks and insurers (need the proof to lend, have no field team), traders last, once proofs already circulate among their suppliers.
Roadmap
Identity: an on-chain attestation "key ↔ CAR holder" issued by a co-op, a bank, or the farmer via gov.br; then a zkTLS proof of the SICAR login. Data and payments: DETER real-time alerts, IBAMA embargoes, EIP-3009 gasless settlement, a BRL stablecoin or automatic off-ramp. Pilot: one cooperative, one bank, one trader in Rondônia; Mato Grosso and Goiás already covered.
What's reusable
FieldAttestationRegistry (anchor any signed claim about private data), AgentWallet (policy-enforced spending for autonomous agents), the x402 seller server (turn any private dataset into a paid, verifiable proof), and the buyer desk (one text box for a compliance team). Live on HSK Chain testnet, tested end to end with real CAR properties and real INPE/FUNAI/ICMBio data.
Challenges we ran into
Challenges
"What stops anyone from selling a proof for someone else's farm?" The CAR registry is public, so anyone can compute a true-looking proof over a farm they don't own and sign it with their own key. We answered it the way trade already works: the buyer only pays suppliers it has onboarded. The company allow-lists a supplier's address in its AgentWallet after contract/KYC; the buyer agent marks every other seller knownSupplier: false and flags the same CAR offered by two different keys (carConflict). The demo runs an impostor farmer agent offering Farmer A's CAR under an unknown key: the agent refuses it and explains why, and the wallet would revert the payment regardless. Next step: a gov.br-signed binding between wallet and CAR holder anchored on-chain, or a zkTLS proof of the SICAR login.
Can't the farmer draw the polygon around the deforested corner? Not for compliance: attestations of registered properties use the official CAR polygon and carry the CAR number, so any buyer can hash the public polygon and compare it with fieldId. Hand-drawn sub-fields are marked unregistered and skipped for compliance by default.
Getting official deforestation data into pure JavaScript, at scale. PRODES is a WFS service in SIRGAS 2000 with different attribute conventions per biome (state codes in the Amazon layer, full state names in the Cerrado layer). We pull 2021+ polygons for Rondônia, Mato Grosso and Goiás across both biomes (~103k polygons, ~150 MB), build a per-feature bbox index in memory (3 s startup), and intersect with turf in 0.2–0.5 s. Coverage is checked against the state×biome polygons themselves: a field not fully inside covered data is refused with 422 no_coverage, because absence of data is not absence of deforestation.
Real farm polygons without GDAL. CAR exports are nested zips of shapefiles; we parsed .shp/.dbf/.prj in Node with shpjs. Computed areas matched the declared hectares within 0.4%.
Public RPCs are load-balanced. The buyer saw its payment mined on one node while the seller queried another that hadn't seen it yet, and refused delivery. Fixed with receipt retries on the seller and a retry-on-402 loop on the buyer; a dedicated node (Chainstack supports HashKey) removes the issue.
Designing the x402 flow honestly. Full x402 uses EIP-3009 and a facilitator. In a one-day build we settle with an on-chain ERC-20 transfer referenced by tx hash in X-PAYMENT; the seller verifies the Transfer log to its own address and rejects replays. The 402 body follows the x402 v1 accepts[] shape. EIP-3009 is next.
A map that refused to load. MapLibre never fired load in automated tests: Chrome throttles requestAnimationFrame in background tabs and MapLibre's style loader depends on it. Verification moved to headless Playwright with a software GL backend.
Tracks Applied (3)
