Croissant
Croissant ZK: Multi-chain, privacy-preserving reputation system with AI & real-time analytics.
Problem Statement
Croissant ZK Reputation SystemThe Croissant ZK Reputation System is a sophisticated multi-chain developer tool built on Kadena's Chainweb EVM architecture. This project represents a significant advancement in blockchain-based identity and reputation management, combining privacy-preserving technologies with real-time cross-chain analytics.Core Architecture & InnovationThe system operates across Kadena EVM chains 20–22, with each chain specialized for different domains.Chain 20 (DeFi): Tracks trading volume, liquidity provision, and smart contract interactions.Chain 21 (Gaming): Monitors NFT trading, gaming achievements, and game transactions.Chain 22 (Development): Evaluates contract deployments, code quality, and developer activity.This multi-chain approach creates a comprehensive reputation profile that spans the entire Web3 ecosystem, providing unprecedented granularity in user assessment.Real-Time Scoring AlgorithmThe reputation calculation uses a weighted multi-domain approach.DeFi Scoring (40% weight):Transaction volume: log ( volume_USD ) × 10 log(volume_USD)×10 points.Frequency bonus: tx_count × 2 tx_count×2 points.Liquidity provision: days_active × 5 days_active×5 points.Contract diversity: unique_contracts × 3 unique_contracts×3 points.Gaming Scoring (30% weight):Game engagement: tx_count × 1.5 tx_count×1.5 points.NFT trading: nft_volume × 0.1 nft_volume×0.1 points.Achievement multiplier: achievements × 10 achievements×10 points.Development Scoring (30% weight):Contract deployments: deployments × 50 deployments×50 points.Code interactions: interactions × 1 interactions×1 point.Quality metrics: efficiency_score × 20 efficiency_score×20 points.Privacy-Preserving Technology Stack Using Self ProtocolThe system implements zero-knowledge proofs to verify reputation without revealing sensitive transaction details, using the Self Onchain SDK. Users can prove their reputation level to third parties without exposing specific trading amounts, contract addresses, or transaction timing. This creates trust while maintaining privacy—crucial for institutional and privacy-conscious users.Use Cases in the System:DeFi Chain: Prove age 18+ for derivative trading.Gaming Chain: Verify country for region-locked games.Dev Chain: Confirm non-OFAC status for protocol contributions.All Chains: Provide enhanced reputation for compliant users.Advanced AI Agent Integration Reputation Enhancement AgentThis AI agent continuously analyzes user activity patterns and provides personalized recommendations for improving reputation scores. It considers factors like transaction timing, volume thresholds, and cross-chain activity optimization to suggest strategic actions that maximize reputation growth.Goal Achievement Tracking AgentThis agent monitors every transaction across all three chains, tracking progress toward user-defined goals. It maintains detailed analytics on transaction patterns, identifies optimization opportunities, and provides real-time feedback on goal completion status. This creates a gamified experience that encourages positive on-chain behavior.Transactional Analysis AgentThe most sophisticated component, this agent calculates the precise impact of each transaction on the user's overall reputation profile. It performs deep analysis including:Transaction value optimization scoring.Cross-chain interaction bonuses.Smart contract complexity evaluation.Time-weighted activity calculations.Sybil resistance pattern detection.Business Impact & Use Cases Financial Services IntegrationTraditional financial institutions can leverage the reputation system for:Credit scoring for DeFi lending protocols.KYC/AML compliance verification.Risk assessment for institutional trading.Automated underwriting processes.Gaming & EntertainmentGame developers can integrate the system to:Create cross-game reputation portability.Implement skill-based matchmaking.Design reputation-gated content access.Enable trustless tournament organization.Developer EcosystemThe system provides value for:Automated code quality assessment.Developer hiring and reputation verification.Open-source contribution tracking.Smart contract security evaluation. Private Discord Memberships: The system enables exclusive access to Discord channels based on reputation thresholds. Users with high engagement scores in specific domains (DeFi, Gaming, or Development) can unlock specialized channels, fostering tighter communities. These channels can also serve as gateways to private events, collaborations, and reputation-gated opportunities
Solution
StackSmart contracts: Solidity on Kadena EVM (Chainweb). ReputationTracker + SelfVerifier. Off-chain: Node.js, Ethers v6, Axios, Blockscout APIs. Frontend: React + Vite + Tailwind + Framer Motion + Ethers v6. On-chainReputationTracker tracks cross-domain reputation with events and relayer authorization. SelfVerifier handles identity verification flows and proof metadata. Deploy and interact via scripts in /scripts. Off-chain indexingdataIndexer.js ingests transactions/transfers from Blockscout and writes updates on-chain via Ethers. Supports single address and batch flows with lightweight analysis before pushing reputation updates. FrontendWallet connect, chain switching, and self-send test transactions. Live activity capture and reputation aggregation via contexts (Activity + Reputation). Real-time UI with Dashboard, ReputationCard, ActivityFeed, chain explorers, and celebratory micro-interactions. AI agentsAI Insights panel wired through a small Node agent layer for transaction and reputation analysis. Frontend service hooks power summaries, tips, and trend callouts. How it flowsConnect wallet → send tx on Kadena EVM → activity recorded → points calculated → reputation surfaces across the app. Indexer keeps on-chain state fresh by pulling from Blockscout and committing to the contracts. What we focused on (tracks)Self Protocol Kadena Protocol Partner tracks Fun, hacky winsSelf-send test txs for instant, safe on-chain activity across chains. Local-first persistence for snappy UX with contract/indexer sync for durability. Framer Motion + Tailwind for holographic cards, glitch text, and shockwave taps without heavy canvas. What we learnedChainweb parallelism plays nicely with domain-based reputation. Blockscout + Ethers make indexing fast to iterate on. Clean context boundaries keep reactive reputation updates smooth. It was a lot of fun building, learned a ton, and the vibes stayed chill throughout.
Hackathon
ETHGlobal New Delhi
2025
Contributors
- Tanishka-Singh05
9 contributions
- shreyas-sovani
8 contributions
- ayushsrivastava55
6 contributions
- swanandi-bhende
3 contributions
- pb1803
2 contributions