With Eclipse, you can verify content before you buy and protect content until you sell.
Eclipse is a private data marketplace where an AI agent analyzes encrypted content to answer buyer questions—creators don't leak their work until they get paid.
The Problem
Buyers can't verify. You want to know if a dataset has the right format, if a meal plan works for vegetarians, if a tutorial matches your skill level—but you can't see the content until after you pay.
Creators can't scale. Every buyer has different questions. You answer DMs endlessly, try to predict FAQs, and still miss edge cases. Sleep through a notification? Lose the sale. Give away too much detail? Also lose the sale.
The Solution
Eclipse runs an AI Agent inside Nillion's Trusted Execution Environment (nilCC) to access encrypted content and answer buyer questions in real-time.
- For Buyers: Ask the AI anything. Get real answers before you commit. "Is this vegetarian?" "Does this include coordinates?" "What skill level?"
- For Creators: Upload once. The AI handles unlimited buyer questions automatically. Zero customer support.
- For Trust: Content stays encrypted everywhere except in the TEE's memory during analysis. Payment verified on-chain via Envio before download access.
No previews. No leaks. No blind purchases.
How It Works
- Creator uploads → Content encrypted and stored in Nillion Private Storage (nilDB)
- Buyer asks questions → The agent uses decrypted content within the TEE to give real-time, neutral answers within privacy guardrails
- Buyer pays in PYUSD → Creator receives an atomic tx via the smart contract payment, which gets indexed by Envio
- Buyer gets instant access → TEE verifies payment, grants download for buyer
Tech Stack
- PYUSD - Stablecoin payments for predictable pricing
- Hardhat 3 - Smart contract development + comprehensive testing
- ProductPaymentService.sol - Core payment contract
- TypeScript Tests - End-to-end integration
- Solidity Tests - Unit testing
- Envio HyperIndex - Real-time event indexing with GraphQL API
- Nillion nilDB - Private storage for encrypted metadata
- Nillion nilCC - TEE running the agent for private multimodal analysis over the private content
Project Structure
Smart contract infrastructure for marketplace payments using PYUSD.
- ProductPaymentService.sol - Core marketplace contract with direct creator payments
- Comprehensive testing - Solidity unit tests + TypeScript integration tests
- Deployment scripts - Deploy and interact with contracts on Sepolia testnet
- Live on Sepolia - 0x9c91a92cf1cd0b94fb632292fe63ed966833518d
Event indexing service for real-time marketplace data.
- Live GraphQL API - https://indexer.dev.hyperindex.xyz/0ae1800/v1/graphql
- Dual Entity System - Tracks both historical events and current product state
- HyperSync enabled - Fast historical data synchronization
- Real-time indexing - Live event tracking from ProductPaymentService.sol
Eclipse marketplace frontend built with Next.js 15.
- Live Demo - https://eclipse-pm.vercel.app
- Product Discovery - Browse with search, filtering, and sorting
- Creator Profiles - View statistics and product portfolios
- Transaction Tracking - Complete price history and Etherscan links
- Real-time Data - Apollo Client synced with Envio GraphQL API
TEE-based storage and AI agent service running in Nillion's nilCC infrastructure.
- Live nilCC Service - https://2e08d150-6083-49aa-99e3-2b786e51fb2f.workloads.nilcc.sandbox.nillion.network/health
- AES-256-GCM encryption - Secure content encryption with master key protection
- Nillion nilDB integration - Encrypted metadata and key storage
- Google Gemini 2.0 Flash - Multimodal content analysis (text + images)
- Privacy guardrails - Prevents content leakage during AI interactions
- Payment verification - Blockchain integration via Envio before granting access
- nilCC compliant - Runs in Nillion's trusted execution environment