hackquest logo

lattice

The Lattice is the multi-party communion primitive for ERC-7857 souls — N agents jointly produce one TEE-attested inference and the payment fans N ways atomically. Atomic INFTs are molecules; The Latt

视频

项目图片 1
项目图片 2
项目图片 3
项目图片 4

技术栈

Next
Solidity
Node
Ethers
Web3

描述

The Lattice is a multi-party communion primitive for ERC-7857 souls. Today every iNFT is atomic — one owner, one context, one inference. There is no on-chain primitive for N agents to compose into a single inference where all N participants get cryptographic attribution and royalty. The Lattice ships exactly that primitive.

How it works. Each "Soul" is an ERC-7857 iNFT carrying an encrypted context blob — a tutor's pedagogy, an expert's worldview, a curator's taste. A payer picks N souls, writes a question, and pays one fee. Each soul owner signs a participation receipt with their wallet. The orchestrator pulls the N encrypted contexts out of 0G Storage, merges them inside a TEE on 0G Compute (TeeML, deepseek-v3), and runs one inference. The TEE provider returns an ECDSA-signed envelope, which the on-chain attestor verifies for ~3-5k gas — versus 5-15M gas for a full DCAP TDX quote. Then the registry settles by splitting the payment N ways atomically in a single transaction.

Three contracts handle the lifecycle: SoulINFT (extends @0glabs/0g-agent-nft with a per-soul royalty wallet), LatticeAttestor (registered TEE providers, ECDSA verify, replay protection), and LatticeRegistry (open → attest → settle, with EIP-191 receipt verification). The pure RoyaltyFanout library handles equal N-way splits with dust to a protocol fee recipient.

队长
GGuzus Jung
项目链接
部署生态
0G-Galileo-Testnet0G-Galileo-Testnet
赛道
DeFiAIInfra