OpenLabel

Crowdfunded food testing. Verify the label before you eat it.

OpenLabel

Created At

ETHGlobal Mumbai

Project Description

What if the label on your food isn’t true? Crowdfund a lab test for anything you eat. The lab checks label accuracy, contaminants and adulteration, and you get a nutrition grade, so you can make an informed choice about what to buy and eat. Results are proven with zero-knowledge proofs, the tester stays anonymous, and every result, good or bad, stays on-chain as a permanent record.

How it's Made

OpenLabel has four parts: a React web app, a Python API, a Rust zero-knowledge prover, and Solidity contracts on Base.

Frontend: React 19 + Vite + TypeScript, with viem for all chain access. Users sign in with Google or email (Privy), MetaMask or WalletConnect. FastAPI on Postgres serves products and test requests, and existing results from public food-testing sites are imported so the catalogue is useful from day one. The app deploys to Render as one service: FastAPI serves the built frontend.

Proving lab reports: the tester uploads the lab's PDF. The prover reads the report link from the QR code printed on the PDF and fetches the lab's own copy from the lab's server under TLSNotary, which signs a record of what the lab's server returned. It then requires the upload to match that copy byte for byte. Inside an SP1 zkVM, a custom Rust PDF parser blanks out the customer's name and address and extracts the test results. The result is a Groth16 proof that shows three things together: the report came from the lab, it wasn't altered, and only the test values are made public. Proving runs on a GPU server, keeps going in the background while the user browses, and the tester then submits it on-chain with one click.

Contracts (Solidity, Foundry): EurekhaReportRegistry checks the proof, the notary's signature and the lab's domain. TestFund runs one pool per request:

  • anyone contributes toward the lab cost;
  • anyone can take the job by staking $110;
  • a valid proof pays the tester the stake plus the pool, and any shortfall counts as the tester's own contribution;
  • a tester who misses the 30-day deadline loses the stake to the pool, and the job reopens;
  • the admin can later share revenue (e.g. affiliate income) among contributors in proportion to what each put in.

The proven results are decoded straight from the chain and shown on the product page, so anyone can check them without trusting our server.

background image mobile

Join the mailing list

Get the latest news and updates