About
## Wave 3 submission
Sealbox — Updates in this Wave
Sealbox makes a system prompt / agent config a real digital asset: an ERC-7857 iNFT whose encryption key re-seals to the buyer on every purchase, so the seller cryptographically loses access the moment a sale confirms.
Smart contracts (Solidity 0.8.28, Hardhat, OpenZeppelin v5) - ERC7857.sol — the Sealbox iNFT: mint (open, any wallet), purchase (payable, flat 0.1 OG, forwarded straight to seller), transfer, clone (re-sealed copy for agent templates), authorizeUsage / revokeUsage (scoped, revocable rental), setOracle, views. - MockOracle.sol — testnet re-encryption proof verifier (production swaps for a 0G DA-signed attestation / TEE quote). - 13 passing tests, including a proof-replay theft attack as a regression case. - Auth hardening: transfer() now requires msg.sender == from == ownerOf(tokenId), fixing a real bug where a valid oracle proof alone could steal a token; purchase() rejects self-buy and enforces exact price.
Deployed live on 0G Galileo testnet (chain 16602) - Sealbox iNFT (symbol SEAL): 0xCb3240F9EdE4A0F2407325a3d1144D87C0d6fD64 - MockOracle: 0x90761A1F9Cc15395410e5A27eE2AC5b10ecF4168 - 4 sealed prompts seeded and live (Legal Brief Writer, Solidity Auditor Assistant, Cold Email Generator, Trading Signal Analyzer); purchase() exercised end-to-end on-chain. - Explorer: https://chainscan-galileo.0g.ai/address/0xCb3240F9EdE4A0F2407325a3d1144D87C0d6fD64
0G Storage integration
- Browser-side AES-256-GCM encryption (Web Crypto); plaintext never leaves the client. - 0G Storage TS SDK wired for upload + download; the Merkle root is what the iNFT records as encryptedURI. - viem WalletClient → ethers v6 signer adapter so the storage SDK signs with the connected wagmi wallet. - Shared re-seal pipeline (download → decrypt → re-encrypt under fresh key → re-upload) used by both seller transfer() and buyer purchase(). 0G Compute integration - /api/query server route proxies to the 0G Compute Router for TEE inference — buyers can run a purchased prompt without it ever touching their clipboard. Frontend (Next.js 16 App Router, Tailwind v4, RainbowKit + wagmi + viem) - /market — live on-chain listings from Minted events; one-click 0.1 OG Buy runs the full re-seal + purchase(); buyer-side effect scans SealedKeyDelivered and auto-stores the delivered key. - /prompts — console to mint (explicit 2-tx flow), reveal (decrypt locally), sell, and rent; accepts marketplace deep-links. - /templates — starter prompts to fork and mint. /features, /pitch — narrative. - Routes restructured with redirects from old slugs; full tx UX (pending/mining/mined/error, explorer links, chain guard).
From the public Akindo product page. Votes, swipes and the judge score are hackfeed's own.





