Argus

Marketplace for hardware-signed AI training data with verifiable provenance

Argus

Created At

ETHGlobal Mumbai

Project Description

Argus is a marketplace for real-world AI training data that can prove where it came from.

AI teams building vision models for farms, warehouses, retail and insurance can buy images by the million. What they can't buy is certainty: whether a frame was really captured where and when the label says, whether it was edited or generated, and whether the person who took it agreed to sell it. Argus moves that question to the moment of capture.

An Argus rig is an ESP32-CAM plus a sensor board with an IR presence sensor, a DHT temperature/humidity sensor, ultrasound and an RC522 RFID reader. When a contributor captures a photo or a 5-second clip, the media hash, sensor readings and RFID tag are written into one canonical manifest and signed with the device's registered P-256 key: on the ESP32 main board itself (mbedtls ECDSA, key in NVS), or by a platform-held key for sensor-only rigs, which the UI labels dev-software. Change one pixel and the signature breaks. Simulated devices exist for testing and are labelled SIMULATED everywhere.

Every sample then passes seven checks: content hash, manifest hash, device registration, key binding, signature, replay protection, and a quality and privacy pass. The deterministic part (blur, exposure, near-duplicates by dHash, face detection) always runs; the model part runs as a vision-model call on 0G Compute, and its request ID is stored with the verdict so anyone can see which model accepted the sample.

The media is encrypted with AES-256-GCM. The ciphertext and the canonical manifest are uploaded to 0G Storage, and the returned root hashes are written into the signed manifest's media block, so the storage address is itself part of what the device signed. The Proof Card re-verifies a dataset without trusting us: it fetches the manifests back from 0G by root, re-derives the Merkle root, and compares it with the root anchored on-chain.

Three chains, three jobs. Ethereum Sepolia holds the marketplace contract: device keys are registered on-chain, datasets are published with their Merkle root, licenses are bought in ETH, and buyer requests lock ETH in escrow that is released per accepted sample, each sample hash payable once. Whitechain is the stablecoin rail: a buyer signs one EIP-3009 authorization for USDT and our relayer pays the gas, with per-request quotes, nonces and rate limits so the relayer can't be drained; the same flow is served as an HTTP 402 (x402) endpoint, so an AI agent with only USDT can buy a training license by itself and pull the signed manifests it paid for. The 0G chain (Galileo) settles the data and compute layer: every storage upload is a Galileo transaction that yields the content root, and the compute ledger that funds providers, acknowledges them and acknowledges a delivered model is a set of on-chain operations on 0G. On-chain settlement is what lets a contributor in one country be paid by a buyer in another with instant finality, programmable per-sample payouts and no payment processor in between.

Buyers post funded requests such as "RFID-tagged parcels with IR presence" or "cold-chain shelves with temperature and humidity." Licensed buyers train inside a Training Room where raw media is decrypted in memory only and never downloadable (raw export is a 403, and audited). Image models train there; from the same room a buyer can fine-tune a caption model on the dataset's labels inside a 0G TEE provider, and deploy the resulting adapter as a served 0G agent. Exported weights ship with a model card listing exactly which licensed datasets went in. Devices, requests, datasets and verified samples are indexed as queryable entities on Arkiv with TTLs, so discovery doesn't depend on our database and expired requests prune themselves.

We're explicit about the limits: a signature proves this exact file came from this registered key, at this time, unaltered. It doesn't prove the scene matches the label; request specs, the 0G quality pass and reputation handle that. The verifier is a platform role in this MVP, the contracts are unaudited, and seed data never touches 0G. Everything is open source.

How it's Made

The Argus rig runs on two boards. An ESP32-CAM captures photos and 5-second clips, and a NodeMCU reads IR presence, temperature/humidity and RFID tags; the two never share a wire and talk to the laptop over the same hotspot. A FastAPI backend combines each capture with its sensor readings into one canonical manifest, signed ES256 with the device's P-256 key. On the ESP32 main board the key lives in NVS and the board signs the digest itself over /sign; for the sensor-only rig the platform holds the key and the UI labels the device dev-software. The media is encrypted with AES-256-GCM and samples are grouped into datasets under a Merkle root. The frontend is Next.js with wagmi/viem; the Training Room is PyTorch and trains image models in memory without ever exposing raw media.

Every sample passes seven checks before payout: content hash, manifest hash, device registration, key binding, signature, replay, and a quality/privacy pass that is half deterministic (sharpness, exposure, dHash near-duplicates, OpenCV face detection) and half a vision-model call whose request ID is stored with the verdict.

Ethereum Sepolia anchors trust: one contract holds the device registry, dataset roots, license sales with an on-chain seller/treasury split, and escrowed data requests, each sample hash payable once. Every transaction is signed in the user's own wallet.

0G is the storage, AI and settlement layer for the data. Encrypted media and canonical manifests are uploaded to 0G Storage through the Galileo indexer, and each upload is a transaction on the 0G chain that returns the content root; those roots are written into the signed manifest, so anyone can re-derive a dataset's Merkle root straight from 0G. Quality checks run on the 0G Router or a TEE provider resolved through the compute broker, and fine-tuning runs inside a 0G TEE provider from the Training Room: the dataset is uploaded to the TEE, a task is created on Qwen2.5-0.5B-Instruct, the delivered model is acknowledged and decrypted, and the adapter is deployed as a served 0G agent. Funding the compute ledger, funding provider sub-accounts, acknowledging the provider and acknowledging the delivered model are all on-chain calls on Galileo.

Whitechain makes payment invisible. Buyers pay in USDT by signing one EIP-3009 authorization while our relayer covers the gas, with per-request quotes, nonces and rate limits so it can't be drained; the same flow is an x402 endpoint, so an AI agent holding only USDT can buy a training license by itself. Arkiv indexes devices, requests, datasets and verified samples as queryable entities with TTLs, so marketplace discovery doesn't depend on our database and expired requests prune themselves.

Hacky bits:

  • We flashed the ESP32-CAM through a NodeMCU used as a USB-serial bridge. , with its EN pin tied to GND so its own chip stays off and the USB chip talks straight through.
  • The 0G storage SDK uses os.pread/os.pwrite, which don't exist on Windows, so we monkey-patched both with seek-and-read under a lock to get uploads working on the laptop that runs the demo.
  • The 0G compute SDK's default 300k gas reverts on the account-creation path of transferFund; we build that transaction by hand with 2M gas and resolve the ledger's on-chain service name so it doesn't hit ServiceNotFound.
  • The public Galileo RPC drops connections, so every 0G call retries across RPC fallbacks and the fine-tune status endpoint runs in a thread with a 20 s guard and a cached snapshot, so a flaky chain never blocks the API.
  • Whitechain's USDT has no version() getter and the EIP-712 domain isn't documented, so we derived it by matching DOMAIN_SEPARATOR() by hand (Tether USD, version 1, chainId 1874).
  • The camera firmware self-heals: it re-initialises the sensor when a frame grab fails instead of needing a power cycle.
background image mobile

Join the mailing list

Get the latest news and updates