hackquest logo

Kiln

Mint your AI coach as an iNFT you own forever. Rent it by the session, sell it like any other asset. Live on 0G Aristotle mainnet with a real attestation-verified ERC-7857 oracle.

Videos

Project image 1
Project image 2
Project image 3

Tech Stack

Web3
Solidity
React
Next
Ethers
Node

Description

Kiln is a sovereign atelier where AI experts mint their model as an ERC-7857 intelligent NFT they fully own. A chess grandmaster, a yoga teacher, a startup mentor, anyone with hard-won knowledge can upload what they know, encrypt it, mint it as an iNFT, and rent it by the session or license it by the day.

Students chat with the coach's AI through a TEE-protected inference path so they can use the model without ever seeing the weights. The coach can sleep. The iNFT does not.

How it works

Every piece is built on 0G.

- 0G Storage holds the encrypted artifacts with Merkle roots committed on chain

- 0G Compute runs inference inside an Intel TDX TEE

- 0G Chain holds the iNFT contracts and the marketplace

KilnAttestationOracle verifies ECDSA-signed envelopes against a trusted-signer registry, with replay protection, expiry windowing, and a permanent mainnetLocked flag that disables the demo bypass forever.

Coaches can also claim a permanent ENS subname under kiln.eth (Sepolia registrar) so the iNFT gets a human-readable identity that survives every transfer.

Live on 0G Aristotle Mainnet (chain id 16661)

- KilnAttestationOracle0x48355a8897F13b432a321dc530AEFCf77B686698(https://chainscan.0g.ai/address/0x48355a8897F13b432a321dc530AEFCf77B686698)

- KilnAgentNFT (ERC-7857)0x83B632ECa1f175e72D1299f0d540da04Ed1edCaa(https://chainscan.0g.ai/address/0x83B632ECa1f175e72D1299f0d540da04Ed1edCaa)

- KilnMarket0x34C0AE70f887f8270014de09E6a3923f3321976c (https://chainscan.0g.ai/address/0x34C0AE70f887f8270014de09E6a3923f3321976c)

First five marquee coaches seeded across Chess, Wellness, Startup, Languages, and Math. Frontend live at https://kiln-virid-rho.vercel.app. Source open at https://github.com/imanishbarnwal/kiln.

Progress During Hackathon

Built end to end during the 0G APAC Hackathon.

Smart contracts. Three contracts deployed and locked on 0G Aristotle mainnet, chain 16661. KilnAttestationOracle, KilnAgentNFT (ERC-7857), KilnMarket. 47 of 47 Foundry tests passing. Static analysis clean.

Real attestation oracle. Replaces the testnet mock. ECDSA verification with canonical low-s and strict v in {27, 28} so malleated signatures revert. Per-signer nonce stamping for replay protection. 365-day expiry ceiling with 60-second clock-skew window. Cross-domain separators prevent a preimage proof from being replayed as a transfer proof. Mainnet mode permanently locked via lockMainnetMode after deploy.

0G Storage integration. Encrypted artifact uploads with AES-256-GCM, Merkle root committed on chain.

0G Compute integration. TEE-attested inference using Qwen 2.5 7B via the OpenAI-compatible broker. Real getQuote attestation wrapper plumbed for v1.1.

ENS subnames. KilnSubnameRegistrar deployed on Sepolia. Every iNFT can claim a permanent <label>.kiln.eth subname that resolves to the same chat route.

Council mode. Two-node Gensyn AXL mesh for multi-coach question routing with a synthesis verdict so students can compare coaches before paying.

Retrieval. BM25 over the coach's uploaded notes manifest, gives honest extremely-well-prompted inference without claiming fine-tuning we have not yet done.

Marketplace. Five marquee coaches seeded on mainnet across Chess, Wellness, Startup, Languages, and Math. Total deploy plus seed cost approximately 0.04 OG.

Fundraising Status

Bootstrapped. But actively looking for grants and support to build this further.

Team Leader
MManish Kumar Barnwal
Project Link
Deploy Ecosystem
0G0G
Sector
AINFTInfra