CryptoTrust Project Story
Inspiration
The inspiration for CryptoTrust came from a fundamental problem in the cryptocurrency space: information asymmetry and lack of trustworthy feedback mechanisms. While traditional platforms like Trustpilot provide valuable reviews for consumer products, the crypto ecosystem lacked a privacy-preserving way for users to share honest experiences about DeFi protocols, wallets, exchanges, and other blockchain projects.
We recognized that crypto users face unique challenges:
- Fear of retaliation from project teams or communities when posting negative reviews
- Concerns about privacy when linking reviews to wallet addresses or identities
- Difficulty distinguishing between genuine user feedback and paid shills or bot reviews
- Lack of accountability for projects to address legitimate user concerns
The emergence of Midnight Network's zero-knowledge infrastructure presented an opportunity to solve these problems through cryptographic privacy guarantees rather than just policy promises.
What it does
CryptoTrust is the first anonymous, zero-knowledge verified review platform for cryptocurrency projects. It enables users to:
For Reviewers:
- Submit completely anonymous reviews of crypto projects while proving they are real users
- Rate projects on a 5-star scale with detailed pros/cons feedback
- Upload supporting evidence (screenshots, documents) to back their claims
- Maintain privacy through mathematical guarantees, not just platform policies
For the Community:
- Access verified, authentic reviews without fake bot content
- Browse projects by category (DeFi, NFT, Gaming, Infrastructure, etc.)
- Filter and search through reviews to make informed decisions
- View aggregate statistics and trending projects
For Project Teams:
- Receive honest feedback without reviewer retaliation concerns
- Understand user pain points through verified, authentic reviews
- Build trust through transparent, unbiased feedback collection
- Monitor sentiment while respecting user privacy
For Administrators:
- Moderate content quality without accessing reviewer identities
- Verify cryptographic proofs of review authenticity
- Maintain platform integrity while preserving zero-knowledge guarantees
How we built it
Frontend Architecture
We built a modern React 18 application with TypeScript, utilizing a custom design system inspired by glass morphism and gradient aesthetics. The interface features:
- Component Library: Reusable UI components (Card, Button, Badge) with consistent styling
- Responsive Design: Tailwind CSS with custom utilities for gradients and animations
- State Management: React hooks for local state with IndexedDB for persistence
- Routing: React Router for seamless navigation between pages
Privacy Infrastructure
The core privacy layer leverages Midnight Network's zero-knowledge capabilities:
// Zero-knowledge proof generation for anonymous reviews
const proof = await midnightJS.generateProof('membership_rln', {
merkleRoot: organizationRoot,
epoch: currentEpoch,
identitySecret: userSecret,
merklePath: membershipPath,
message: reviewHash
});
- ZK Circuits: Custom Compact language circuits for membership proofs and rate limiting
- Rate-Limit Nullifiers (RLN): Prevent spam while maintaining anonymity through epoch-based nullifiers
- Client-Side Encryption: Web Crypto API for end-to-end encryption of sensitive data
- Groth16 Proofs: Industry-standard SNARK construction for efficient verification
Data Architecture
We implemented a flexible, privacy-first data layer:
interface ReviewSubmission {
commitment: string; // Hash of encrypted review data
nullifier: string; // Rate-limiting nullifier
proof: SNARKProof; // Zero-knowledge membership proof
encryptedData: string; // AES-GCM encrypted review content
metadata: {
projectName: string;
category: string;
rating: number;
timestamp: number;
};
}
- Local-First Storage: Primary data in IndexedDB with optional cloud sync
- Contract Adapter Pattern: Simulated smart contract integration with real transaction flows
- Sync Providers: Abstraction layer supporting multiple backend options
- Encryption at Rest: All sensitive data encrypted before storage
Smart Contract Integration
We designed a contract adapter system that simulates real blockchain integration:
const contractAdapter = contractManager.getAdapter();
const result = await contractAdapter.submitReport(
commitment, // Hash of encrypted data
nullifier, // Rate-limit nullifier
epoch, // Current time epoch
proof, // ZK proof
encryptedData // Encrypted review content
);
Challenges we ran into
Technical Challenges
Zero-Knowledge Circuit Complexity: Building custom circuits for membership proofs with rate limiting required deep understanding of cryptographic primitives. We had to implement Merkle tree verification, nullifier generation, and message binding in the Compact language, which has limited documentation and examples.
Browser Performance: Zero-knowledge proof generation can take 2-3 seconds in browser environments. We addressed this through:
- WASM optimization for circuit execution
- Progressive UI updates during proof generation
- Background processing to avoid blocking the main thread
- Graceful fallbacks for slower devices
Privacy vs. Usability Trade-offs: Balancing complete anonymity with spam prevention required careful cryptographic design. Traditional rate limiting relies on user identification, but we needed to prevent abuse without breaking privacy guarantees.
Design Challenges
User Experience Complexity: Explaining zero-knowledge proofs and privacy guarantees to mainstream users without overwhelming them required iterative UI/UX refinement. We implemented progressive disclosure and clear visual indicators for proof verification status.
Admin Moderation Without Identity: Building content moderation tools that work with completely anonymous submissions required new interaction patterns. Administrators can verify proof authenticity and review content quality but cannot trace submissions back to users.
Infrastructure Challenges
Development Environment Setup: Creating a development workflow that supports both real ZK proof generation and fast iteration cycles. We implemented a stub mode for rapid development alongside full cryptographic verification for testing.
Cross-Platform Compatibility: Ensuring consistent behavior across different browsers and devices, particularly for WebAssembly execution and cryptographic operations.
Accomplishments that we're proud of
Technical Achievements
First Privacy-Preserving Review Platform: We successfully created the first anonymous review system for crypto projects with mathematical privacy guarantees, not just policy promises.
Zero-Knowledge Innovation: Implemented custom circuits that combine membership proofs with rate-limit nullifiers, solving the spam prevention problem while maintaining complete anonymity.
Modern User Experience: Built a beautiful, accessible interface that makes complex cryptographic operations feel simple and intuitive for end users.
Flexible Architecture: Created a modular system that supports multiple deployment options, from local-only usage to cloud-synced multi-device experiences.
User Experience Achievements
Seamless Privacy: Users can submit reviews anonymously without complex key management or technical knowledge of zero-knowledge proofs.
Real-Time Verification: Cryptographic proof verification happens instantly in the browser, providing immediate feedback on submission authenticity.
Cross-Device Sync: Optional encrypted cloud synchronization allows users to access their moderation dashboard from multiple devices without compromising privacy.
Community Impact
Addressing Real Problems: Created a solution for genuine pain points in the crypto community around trustworthy, unbiased project feedback.
Open Source Foundation: Built the entire platform as open source, enabling community contributions and transparency in the privacy implementation.
What we learned
Cryptographic Design
Privacy Engineering Complexity: Implementing true privacy-preserving systems requires careful consideration of every data flow and potential correlation attack. We learned that achieving mathematical privacy guarantees is significantly more complex than traditional access controls.
Zero-Knowledge Circuit Design: Writing efficient circuits requires understanding both the mathematical foundations and the practical constraints of proof generation in browser environments.
User Experience for Privacy Tools
Progressive Disclosure: Users need to understand the value of privacy features without being overwhelmed by cryptographic details. We learned to present complex operations through simple, familiar interfaces.
Trust Building: When privacy is the core value proposition, users need clear indicators that the system is working correctly. Visual proof verification and transparent documentation became crucial.
Blockchain Integration Patterns
Simulation vs. Reality: Building robust smart contract integration patterns that work in development environments while remaining compatible with real blockchain deployment.
Privacy-Preserving Analytics: Generating useful platform statistics without compromising individual user privacy required careful aggregation design.
Modern Web Development
Performance Optimization: Learned techniques for optimizing cryptographic operations in browser environments, including WASM compilation and background processing.
Accessibility in Complex Applications: Ensuring that privacy-focused applications remain accessible to users with different technical backgrounds and assistive technologies.
What's next for CryptoTrust
Short Term (3-6 months)
Mainnet Integration: Deploy to Midnight Network mainnet once available, transitioning from simulated to real blockchain integration with actual smart contracts and on-chain verification.
Mobile Application: Develop native iOS and Android applications for better mobile user experience, including push notifications for review status updates and streamlined submission flows.
Enhanced Project Database: Expand the supported project categories and implement automatic project detection through on-chain analysis and community submissions.
Medium Term (6-12 months)
Community Governance: Implement decentralized governance features allowing the community to vote on platform policies, moderation guidelines, and feature priorities while maintaining privacy.
Advanced Analytics: Build privacy-preserving analytics dashboards for project teams, using techniques like differential privacy to provide useful insights without exposing individual reviewer behavior.
API and Integrations: Create public APIs for third-party integrations, allowing wallets, DeFi aggregators, and other platforms to display CryptoTrust ratings directly in their interfaces.
Multi-Language Support: Expand platform accessibility through internationalization, starting with major crypto markets in Asia and Europe.
Long Term (1-2 years)
Cross-Chain Expansion: Extend support beyond Ethereum-based projects to include Bitcoin, Solana, Cardano, and other major blockchain ecosystems.
Advanced Privacy Features: Implement cutting-edge privacy techniques like homomorphic encryption for private statistics computation and multi-party computation for distributed moderation.
Incentive Mechanisms: Design token-based incentive systems for high-quality reviews and community moderation, while preserving the anonymous nature of submissions.
Ecosystem Partnerships: Establish partnerships with major crypto platforms, exchanges, and wallet providers to integrate CryptoTrust ratings as a standard component of the crypto user experience.
Research Contributions: Publish academic research on privacy-preserving reputation systems and contribute to the broader zero-knowledge and blockchain privacy research community.
Built With
- compact
- midnight
- react
- tailwindcss
- typescript
- zk
Log in or sign up for Devpost to join the conversation.