Skip to content

Zero-knowledge proof verification system combining Solana/Anchor, Noir ZK circuits, and React frontend for secure on-chain attestation

Notifications You must be signed in to change notification settings

emilbob/proof-of-anchor

Repository files navigation

πŸ›‘οΈ Proof of Anchor - Universal Transparency Verification

Solana Noir License

Stop fraud before it starts with zero-knowledge proof

A comprehensive zero-knowledge proof system that provides trustless transparency ratings for ANY online project, company, or platform using zkTLS and crowdsourced analysis. Works across crypto, e-commerce, B2B, crowdfunding, and all digital platforms.


🚨 The Problem

$300+ Billion lost to online fraud annually. From crypto rug pulls to e-commerce scams, fake suppliers to fraudulent crowdfundingβ€”billions drain from unsuspecting users across all digital platforms with no reliable verification system.

Current solutions fail:

  • Manual due diligence is slow and inconsistent
  • Centralized rating agencies can be compromised or manipulated
  • No verifiable proof of project/company transparency
  • Community reviews are fragmented and easily gamed

πŸ’‘ Our Solution

Proof of Anchor provides trustless, verifiable transparency ratings for crypto projects using:

Core Features

πŸ” Real-Time TLS Certificate Validation

  • Live HTTPS certificate verification via trusted CAs
  • Detects invalid, expired, or suspicious certificates
  • Instant validation status (<500ms)
  • Works for any domain globally

πŸ“Š Live GitHub Integration

  • Real-time API queries fetch actual repository data
  • Analyzes stars, forks, commits, license, activity
  • Automated repository discovery with pattern matching
  • 20+ pre-mapped popular projects for instant analysis
  • Code review score based on community engagement

πŸ” Multi-Dimensional Transparency Analysis (0-100)

  • βœ… Public GitHub repository presence
  • βœ… Documented roadmaps and project plans
  • βœ… Security audit reports from reputable firms
  • βœ… Team verification with public profiles
  • βœ… Token economics and whitepaper documentation
  • Adaptive scoring: Established companies vs new projects
  • Complete analysis in 2-4 seconds

⚠️ Intelligent Risk Assessment (0-10)

  • TLS certificate validation status
  • Code repository transparency level
  • Security audit availability
  • Team anonymity detection
  • Recent development activity checks
  • Context-aware: Different thresholds for established vs new projects

πŸ€– AI-Powered Legitimacy Assessment

  • Combines transparency score + risk level
  • Generates confidence-based recommendations:
    • HIGHLY LEGITIMATE (80+): Minimal risk, strong transparency
    • LIKELY LEGITIMATE (60-80): Good indicators, minor concerns
    • POSSIBLY LEGITIMATE (30-60): Mixed signals, verify further
    • SUSPICIOUS (<30): Multiple red flags detected
  • Detailed risk factors and transparency indicators listed

πŸ‘₯ Community Voting System

  • Vote "Legitimate" or "Suspicious"
  • Confidence-weighted voting (1-10 scale)
  • Prevents manipulation through wallet signatures
  • Sybil attack resistance
  • Real-time consensus calculation

⛓️ Optional Solana Blockchain Storage

  • Immutable on-chain records (Devnet/Mainnet)
  • Proof hashes permanently stored
  • Transparency scores and community votes
  • Transaction cost < $0.01
  • Works fully offline - blockchain is optional!

🌐 Universal Domain Support

  • Analyze ANY domain: crypto, e-commerce, B2B, crowdfunding
  • Built-in optimization for 20+ major projects
  • Pattern-based discovery for unknown projects
  • Cross-platform: Web3, Web2, emerging platforms

πŸ—οΈ Architecture

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚   User Input    β”‚    β”‚   zkTLS Proof   β”‚    β”‚   Transparency  β”‚
β”‚   (Project URL) │───►│   Generation    │───►│   Analysis      β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜    β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜    β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                                                        β”‚
                                                        β–Ό
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚   Final Score   │◄───│   Community     │◄───│   Risk          β”‚
β”‚   On Solana     β”‚    β”‚   Voting        β”‚    β”‚   Assessment    β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜    β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜    β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Technology Stack

  • Noir - Zero-knowledge circuit language for zkTLS proofs
  • Rust - High-performance verification and transparency analysis
  • Solana/Anchor - Fast, low-cost blockchain for immutable storage
  • React + TypeScript - Beautiful, responsive frontend UI
  • Poseidon Hash - ZK-friendly cryptographic primitives

πŸš€ Quick Start

Prerequisites: Node.js 18+, Phantom Wallet (browser extension)

# Clone and install
git clone https://github.com/proofofanchor/proof_of_anchor.git
cd proof_of_anchor/frontend
npm install

# (Optional) Add GitHub token for higher rate limits
echo "VITE_GITHUB_TOKEN=your_token" > .env

# Start
npm run dev

Visit http://localhost:5173 and connect your Phantom wallet!

βœ… Works fully offline - no blockchain deployment needed!

Try These Domains

  • High Transparency: github.com, ethereum.org, solana.com
  • Medium Transparency: uniswap.org, opensea.io
  • Custom: Enter any domain!

Full Stack Setup (Advanced)

For blockchain deployment:

# Start Solana validator
solana-test-validator

# Deploy program
cd solana && anchor build && anchor deploy

# Start frontend
cd ../frontend && npm run dev

πŸ“ Project Structure

proof_of_anchor/
β”œβ”€β”€ noir/              # zkTLS circuits (Noir)
β”‚   β”œβ”€β”€ src/main.nr    # Certificate verification circuit
β”‚   └── witness/       # Example proof inputs
β”‚
β”œβ”€β”€ verifier/          # Rust verification engine
β”‚   β”œβ”€β”€ src/main.rs    # Transparency analysis logic
β”‚   └── src/real_zk_tls.rs
β”‚
β”œβ”€β”€ solana/            # Anchor program (Solana)
β”‚   β”œβ”€β”€ programs/attestation/
β”‚   β”‚   └── src/lib.rs # On-chain storage & voting
β”‚   └── Anchor.toml
β”‚
β”œβ”€β”€ frontend/          # React UI
β”‚   β”œβ”€β”€ src/App.tsx
β”‚   β”œβ”€β”€ src/components/
β”‚   └── src/services/
β”‚
β”œβ”€β”€ scripts/           # Automation scripts
β”‚   β”œβ”€β”€ deploy_anchor.sh
β”‚   └── run_proof.sh
β”‚
└── docs/              # Documentation
    β”œβ”€β”€ PITCH_DECK.md  # Investor presentation
    └── architecture.md

🎯 Use Cases

Retail Investors - Verify transparency before investing, avoid rug pulls
Exchanges - Automate project vetting, reduce scam listings by 90%
VC Funds - Batch-analyze 50+ projects instantly, 10x faster due diligence
DeFi Protocols - Require 80+ scores before partnerships
Regulators - Verifiable on-chain proof of transparency checks


πŸ”¬ How It Works

1. Domain Analysis & Data Collection

User submits any domain β†’ System validates TLS certificate via HTTPS β†’ Fetches real-time GitHub data (stars, forks, commits, license) β†’ Automated repository discovery for 20+ popular projects.

2. Transparency Scoring (0-100)

Analyzes multiple indicators:

  • βœ… Public GitHub (25pts) - Open-source code, active commits
  • βœ… Security Audits (25pts) - Third-party verification
  • βœ… Roadmap (20pts) - Public planning documentation
  • βœ… Team Verification (15pts) - Public profiles
  • βœ… Token Economics (15pts) - Whitepaper transparency
  • Bonus: GitHub stars, forks, recent activity (0-35pts)

Adaptive scoring: Established companies start at 85pts; new projects build from 0pts.

3. Risk Assessment & Legitimacy

Risk Factors (0-10): Invalid certificates, no code repository, low engagement, missing audits, anonymous team.

Legitimacy Ratings:

  • HIGHLY LEGITIMATE (80+) - Strong transparency, minimal risk
  • LIKELY LEGITIMATE (60-80) - Good indicators, minor concerns
  • POSSIBLY LEGITIMATE (30-60) - Mixed signals
  • SUSPICIOUS (<30) - Multiple red flags

4. Community Voting & Proof Storage

Vote "Legitimate" or "Suspicious" with confidence (1-10) β†’ Weighted consensus prevents manipulation β†’ Generate SHA-256 proof hash β†’ Optional: Store on Solana blockchain (<$0.01).

Complete workflow: 3-6 seconds from input to verified proof.

Note: System works fully offline - blockchain is optional!


πŸ“Š Performance Metrics

Metric Value
Full Analysis 2-4 seconds
TLS Certificate Check <500ms
GitHub API Query 200-800ms
Proof Verification <500ms
Total End-to-End 3-6 seconds
Solana Transaction <$0.01 (optional)
GitHub API Rate Limit 60/hr β†’ 5,000/hr w/ token
Supported Domains 20+ built-in, unlimited

Tip: Add VITE_GITHUB_TOKEN to increase API rate limits from 60 to 5,000 requests/hour.


πŸ› οΈ Development

Run Tests:

cd noir && nargo test              # Noir circuits
cd solana && anchor test           # Solana program
cd verifier && cargo test          # Rust verifier
cd frontend && npm test            # Frontend

Generate Proofs:

./scripts/test_examples.sh         # Example proofs
./scripts/run_real_proof.sh        # Real domain proof

🎨 Live Demo

Demo is NOW LIVE on Solana Devnet!

Connect your Phantom wallet β†’ Enter a domain β†’ Get instant transparency analysis with real GitHub data & TLS validation β†’ Vote on legitimacy β†’ Generate verified proof!

Pre-Optimized Domains

Blockchain: ethereum.org, solana.com, uniswap.org, opensea.io, chainlink.network, polygon.technology, bitcoin.org

Tech Giants: github.com, google.com, microsoft.com, facebook.com

Social/Emerging: bluesky.app, discord.com, slack.com, zoom.us

Any domain works - not just the ones listed above!


πŸš€ Roadmap

Q2 2024: Solana mainnet, 1,000+ projects, exchange partnerships, mobile app
Q3 2024: Multi-chain (ETH, BSC, Polygon), 10,000+ projects
Q4 2024: ML scam prediction, historical analysis, real-time alerts
2025: 100,000+ projects, 50+ institutions, token launch & DAO


🀝 Contributing

Contributions welcome! Report bugs, suggest features, submit PRs, improve docs, or translate. See CONTRIBUTING.md for guidelines.


πŸ“„ Documentation


πŸ“§ Contact


πŸ“œ License

This project is licensed under the MIT License - see the LICENSE file for details.


πŸ™ Acknowledgments

  • Noir Team - For the amazing zero-knowledge DSL
  • Solana Foundation - For the fast, low-cost blockchain
  • Anchor Framework - For simplifying Solana development
  • Community Contributors - For testing and feedback

"In the digital economy, transparency isn't just nice to haveβ€”it's essential for trust."

Let's make online commerce safer for everyone. πŸ›‘οΈ

⭐ Star this repo | 🐦 Follow us | πŸ’¬ Join Discord

About

Zero-knowledge proof verification system combining Solana/Anchor, Noir ZK circuits, and React frontend for secure on-chain attestation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published