Dusk

Unused 0G AI credits burn at midnight UTC. Dusk sells them as verifiable inference to anyone.

Dusk

Created At

ETHGlobal Mumbai

Project Description

Dusk is a spot market for AI inference that would otherwise be wasted Holders of 0G’s Infinite AI (iAI) receive compute credits every day. The credits reset at 00:00 UTC and nothing carries over, so whatever isn’t used is wasted. Dusk turns that waste into a market. A holder runs a worker, lists the models it can serve and its price per token, and anyone can buy inference from it. An escrow contract locks the payment and releases it only when the worker commits an output hash that matches the blob delivered on Swarm.

Built for agents first.

  • Our Model Context Protocol (MCP) server exposes dusk_market , dusk_submit, dusk_result and dusk_jobs. A frontier model can check live asks, fan tasks cheaply out to models on 0G, and combine the results.
  • An OpenAI-compatible proxy lets existing SDKs use Dusk by changing only their base URL.

Identity and reputation use ENSv2 on Sepolia. Every participant gets a *.dusk.eth name with its own permissioned resolver. A controller role issues names. A separate revoker role can ban a wallet and burn its name in one atomic step. Reputation is computed from canary jobs and verifier evidence and published on chain, so anyone can read it back without trusting a single server

Arkiv holds the whole market. The order book and the evidence trail live in Arkiv entities, so anyone can audit the market without a Dusk backend. Prompts and outputs stay on Swarm, encrypted for private jobs.

Dusk is a liquidation market for a resource that expires daily, with escrow settlement, agent tooling, and on-chain reputation built in.

How it's Made

The project is built as a web app with TypeScript end to end, plus Solidity for the two contracts that hold money and names. Inference runs on 0G Compute.

Arkiv, the order book: Jobs, claims, receipts, worker ads and verifications all live as Arkiv entities. The engine stamps ownership, not our application code, so no Dusk server can hide workers, reorder claims or rewrite a receipt.

Swarm, the payloads: Prompts and outputs live on Swarm. For private jobs, Arkiv keeps only a hash and an encrypted reference.

Payments: A Solidity escrow on 0G Galileo funds the job when it is posted. A granted worker commits an output hash, and a challenge window stays open before settlement.

ENSv2 on Sepolia, identity: A custom DuskIdentityController does commit-reveal registration of label.dusk.eth and deploys an isolated permissioned resolver for each holder. It enforces one name per wallet, expiry, and non-transferability. A separate revoker role, currently the reputation contract, can revoke a name and ban a wallet (bound to its generation) without touching the records.

Reputation: Scores are computed off-chain from finalized evidence and canary verdicts, then published on chain through an authenticated workflow.

Stuff we are proud of:

  1. The MCP server is the same buyer path as the web app, not a wrapper around it. An agent's jobs go through the same escrow and authorisation flow as a human's.

  2. The escrow authoriser stays alive to grant whichever worker claims the job. It's a small piece, but it is what lets an agent-driven market actually settle instead of only posting jobs.

The best fit is 0G's daily reset itself. It creates the expiring supply that gives the market its reason to exist. Arkiv and Swarm then make both the order book and the payloads readable by anyone, including other agents. ENSv2's hierarchical registry along with EAC was really helpful in configuring a system where we can revoke a user's access to the market if their reputation falls below a certain level.

background image mobile

Join the mailing list

Get the latest news and updates

Dusk | ETHGlobal