Video thumbnail

StealthFi

Your AI defi advisor with zkproofs and private decentralised data storage

StealthFi

Created At

Agentic Ethereum

Winner of

Coinbase Developer Platform - AgentKit Pool Prize

Prize Pool

Project Description

StealthFi is a comprehensive platform designed to democratize access to Decentralized Finance (DeFi) by addressing key barriers like complexity, privacy concerns, and the need for automation. It achieves this through a combination of cutting-edge technologies, including AI-driven insights, zero-knowledge proofs (zk-proofs), secure private data storage, and on-chain AI agents.

Core Functionalities and Features:

Private and Secure Data Handling: StealthFi places a strong emphasis on user privacy. Sensitive financial information, such as investment preferences, is encrypted and stored on a decentralized network of private Nillion nodes. This ensures that user data remains confidential and protected from unauthorized access.

Zero-Knowledge Proofs for Income Verification: A crucial aspect of StealthFi is its use of zk-proofs for income verification. Users are required to prove they meet a minimum income threshold to access the platform. However, instead of revealing their actual income, they generate a zk-proof using SNARKs (specifically, the Circom circuit and Groth16 verification). This allows the platform to verify that the user's income is above the required threshold without learning the user's precise income figure. This preserves financial privacy while ensuring platform integrity.

AI-Powered Personalized Investment Advice: After successfully verifying their income, users can input their investment preferences, such as risk tolerance, desired asset classes, and financial goals. This data is then securely stored and fed to an AI agent. The AI agent analyzes these preferences, along with real-time market data and DeFi opportunities, to provide personalized investment recommendations. This feature helps users make informed decisions tailored to their individual circumstances.

Chat-DeFi: An Informational Hub: StealthFi includes a chat interface designed to answer user queries about DeFi, blockchain technology, and current market trends. This chat functionality is powered by Covalent AI agents and leverages the Covalent Goldrush APIs to access up-to-date information and provide accurate responses. It serves as a valuable resource for users seeking to learn more about the DeFi space.

Agent-Chat: On-Chain AI Agent for Transaction Automation: Perhaps the most innovative feature of StealthFi is its on-chain AI agent. This agent, built using the Coinbase AI AgentKit and leveraging powerful LLMs like GAIA and Hyperbolic (part of the EigenLayer AVS), can execute DeFi transactions on behalf of the user based on natural language prompts. Imagine telling the agent, "Invest 50 USDC in a low-risk yield farming opportunity on Polygon," and the agent automatically carries out the transaction. This eliminates the need for users to interact directly with complex smart contracts and simplifies the entire DeFi experience. The agent can also perform other on-chain tasks like creating new wallets, receiving funds from faucets, transferring tokens, and even minting NFTs – all through simple natural language commands. This is a game-changer for user accessibility.

Seamless Wallet Integration: StealthFi integrates with user wallets via the Reown appkit SDK, providing a secure and user-friendly way to connect and manage their digital assets.

Target Audience:

StealthFi is designed to cater to a wide range of users, from those new to DeFi who need simplified access and guidance to experienced users who value privacy and automation. It particularly benefits those who are intimidated by the technical complexities of DeFi or who are concerned about the privacy implications of using blockchain technology.

How it's Made

StealthFi is built using a combination of zero-knowledge proofs, private decentralized storage, AI-driven insights, and automated onchain execution. The goal was to create a secure and private DeFi experience while keeping it accessible for users who may not be familiar with blockchain complexities.

Technologies Used

  • Frontend: React with TailwindCSS for a clean and responsive user interface
  • Wallet Authentication: Reown AppKit SDK for seamless wallet connection
  • ZK-Proofs: Circom, snarkjs, and Groth16 for income verification
  • Private Data Storage: Nillion Nodes for encrypted and decentralized storage
  • AI-Powered DeFi Insights:
    • Covalent AI Agents and Goldrush APIs for real-time market analysis
    • AI-driven investment recommendations using external APIs
  • Onchain AI Execution: Coinbase AI AgentKit for automating transactions
  • LLMs Used: GAIA LLM (EigenLayer AVS) and Hyperbolic LLM for AI-driven execution
  • Gas Fee Abstraction: Fully handled in the background to create a frictionless experience

How It Works

  1. Wallet Connection

    • Users connect their wallet using Reown AppKit SDK.
  2. Income Verification with ZK-Proofs

    • Users enter their income, and a zero-knowledge proof is generated using Circom and snarkjs.
    • The proof verifies that the user’s income is above the required threshold without revealing the actual number.
    • The verification happens off-chain to save costs and improve efficiency.
  3. Storing Investment Preferences Securely

    • Users enter their investment preferences, such as risk tolerance and asset interest.
    • This data is encrypted and stored on Nillion Nodes, ensuring privacy.
  4. AI-Driven Investment Advice

    • The system fetches the user’s preferences from Nillion, decrypts them, and analyzes them.
    • A custom AI agent processes the data and provides investment recommendations.
    • Covalent Goldrush APIs provide real-time market data to make the advice relevant.
  5. Chat-Based DeFi Insights

    • Users can ask general questions about DeFi, blockchain, or market trends.
    • Covalent AI Agents fetch live data and generate accurate responses.
  6. Onchain AI Agent for Automation

    • The Coinbase AI AgentKit allows users to perform blockchain tasks using natural language commands.
    • The AI agent can create a wallet, receive funds, send tokens, register ENS base names, and mint NFTs.
    • Transactions are executed automatically without requiring user approval each time.

What’s Unique About It

  • ZK-Proofs Without Onchain Verification

    • Instead of verifying proofs on-chain, the process is done off-chain, reducing gas costs while maintaining privacy.
  • Private Storage Without a Blockchain

    • Instead of using IPFS or Arweave, we store sensitive data on Nillion Nodes.
    • This ensures that user investment preferences are private and secure.
  • AI Agent That Executes Transactions Automatically

    • Users don’t need to sign transactions manually for every action.
    • The AI agent handles everything, making DeFi easier for newcomers.
  • Gas-Free User Experience

    • Gas fees are abstracted so users can interact with DeFi without worrying about transaction costs.

Why Partner Technologies Were Essential

  • Reown AppKit SDK made wallet connection simple and secure.
  • Covalent AI and Goldrush APIs provided real-time market insights.
  • Nillion Nodes ensured private data storage without relying on a blockchain.
  • Coinbase AI AgentKit enabled automated onchain execution without user intervention.
  • EigenLayer’s GAIA LLM and Hyperbolic LLM powered the AI-driven interactions.

By combining privacy, AI insights, and automated execution, StealthFi simplifies DeFi while ensuring user data remains secure.

background image mobile

Join the mailing list

Get the latest news and updates