{"id":50745548,"url":"https://github.com/edycutjong/civa","last_synced_at":"2026-06-10T20:30:38.221Z","repository":{"id":356651313,"uuid":"1233496944","full_name":"edycutjong/civa","owner":"edycutjong","description":"🔐 Civa (CipherVault) — Encrypted OTC Dark Pool for Institutional Crypto Trading on Solana. Encrypt SDK + Ika Custody. Colosseum Frontier 2026.","archived":false,"fork":false,"pushed_at":"2026-05-09T04:38:30.000Z","size":2537,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-09T05:09:10.737Z","etag":null,"topics":["dark-pool","defi","encrypted-trading","institutional-crypto","mev-protection","otc","privacy","solana","zkp"],"latest_commit_sha":null,"homepage":"https://civa.edycu.dev","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/edycutjong.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2026-05-09T02:57:45.000Z","updated_at":"2026-05-09T04:38:34.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/edycutjong/civa","commit_stats":null,"previous_names":["edycutjong/civa"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/edycutjong/civa","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edycutjong%2Fciva","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edycutjong%2Fciva/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edycutjong%2Fciva/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edycutjong%2Fciva/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/edycutjong","download_url":"https://codeload.github.com/edycutjong/civa/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edycutjong%2Fciva/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34170162,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-10T02:00:07.152Z","response_time":89,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dark-pool","defi","encrypted-trading","institutional-crypto","mev-protection","otc","privacy","solana","zkp"],"created_at":"2026-06-10T20:30:36.203Z","updated_at":"2026-06-10T20:30:38.211Z","avatar_url":"https://github.com/edycutjong.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\n# 🔐 Civa — CipherVault on Solana\n\n\u003cp\u003e\u003cstrong\u003eHide your trades. Settle atomically. Zero MEV.\u003c/strong\u003e Institutional-grade OTC dark pool protocol using Encrypt SDK for encrypted state and Ika Custody for bridgeless atomic settlement. Audited by Adevar Labs.\u003c/p\u003e\n\n\u003cimg src=\"docs/readme-hero.png\" alt=\"Civa Hero Image\" width=\"100%\"\u003e\n\n\u003cbr/\u003e\n\n[![Live Demo](https://img.shields.io/badge/🚀_Live-Demo-06b6d4?style=for-the-badge)](https://civa.edycu.dev/)\n[![Pitch Deck](https://img.shields.io/badge/📊_Pitch-Deck-f59e0b?style=for-the-badge)](https://civa.edycu.dev/pitch)\n[![Pitch Video](https://img.shields.io/badge/🎬_Pitch-Video-ef4444?style=for-the-badge)](https://youtu.be/2Gfdc36vlZ0)\n[![Built for Frontier](https://img.shields.io/badge/Colosseum-Frontier_Hackathon-8b5cf6?style=for-the-badge)](https://superteam.fun/earn/listing/50k-adevarlabs-bounty)\n\n\u003cbr/\u003e\n\n[![Next.js 16](https://img.shields.io/badge/Next.js-16-black?logo=next.js\u0026style=flat)](https://nextjs.org)\n[![Solana](https://img.shields.io/badge/Solana-Devnet-9945FF?logo=solana\u0026style=flat)](https://solana.com)\n[![TypeScript](https://img.shields.io/badge/TypeScript-5.x-3178C6?logo=typescript\u0026style=flat)](https://typescriptlang.org)\n[![License: MIT](https://img.shields.io/badge/License-MIT-cyan?style=flat)](LICENSE)\n[![Civa CI](https://github.com/edycutjong/civa/actions/workflows/ci.yml/badge.svg)](https://github.com/edycutjong/civa/actions/workflows/ci.yml)\n\n\u003c/div\u003e\n\n---\n\n## 🎯 Problem\n\nLarge-scale crypto trades on public DEXs are fundamentally broken for institutional participants:\n\n- **MEV Extraction** — Bots front-run and sandwich large orders, extracting $1.4B+ in 2025\n- **Market Impact** — A $2M sell on a public AMM moves price 2-5%, costing tens of thousands in slippage\n- **Identity Exposure** — On-chain analysis links wallets to real identities; competitors see your positions\n- **No On-Chain OTC** — Traditional desks are custodial, slow (T+1), and KYC-gated\n\nThe crypto OTC market exceeds **$100B annually**, yet there is no privacy-preserving, non-custodial OTC protocol on Solana.\n\n## 💡 Solution\n\n**Civa (CipherVault)** provides an encrypted OTC dark pool in the **DeFi** category:\n\n1. 🔒 **Makers post encrypted offers** — lock assets in vault PDAs, trade params encrypted via Encrypt SDK\n2. 👁️ **Takers match blindly** — browse liquidity bands ($1M-$5M) without seeing exact amounts\n3. ⚡ **Atomic settlement** — Ika Custody executes simultaneous swap, zero custodial risk\n4. 🛡️ **Post-trade privacy** — settlement reveals only net transfer, not order sizes or parties\n\n**Entire flow: order → settlement in under 10 seconds. 100% on-chain.**\n\n---\n\n## 🏗️ Architecture \u0026 Tech Stack\n\n| Layer | Technology |\n|---|---|\n| **Frontend** | Next.js 16 (App Router), React 19 |\n| **Styling** | Tailwind CSS v4 |\n| **Encryption** | Encrypt SDK (confidential tokens, ZKP) |\n| **Settlement** | Ika Custody (bridgeless atomic swap) |\n| **Blockchain** | Solana Devnet |\n| **Audit** | Adevar Labs Security Credits |\n| **Deploy** | Vercel |\n\n\u003e 📐 **[Full architecture deep-dive →](docs/ARCHITECTURE.md)** — System diagram, matching flow, and encryption details.\n\n---\n\n## 🚀 Quick Start\n\n```bash\n# Clone\ngit clone https://github.com/edycutjong/civa.git\ncd civa\n\n# Install\nnpm install\n\n# Configure environment\ncp .env.example .env.local\n# Fill in: ADEVAR_API_KEY (optional — demo mode works without keys)\n\n# Run\nnpm run dev\n```\n\nOpen [http://localhost:3000](http://localhost:3000) — the hero page loads with full animation suite.\n\n### Environment Variables\n\n| Variable | Required? | Where to Get |\n|----------|-----------|--------------|\n| `NEXT_PUBLIC_ADEVAR_API_URL` | Optional | [Encrypt SDK](https://docs.encrypt.network) — defaults to demo endpoint |\n| `ADEVAR_API_KEY` | Optional | Not required (No developer portal for Ika yet) |\n\n\u003e **💡 Note for Judges (Where to get the API key?):** \n\u003e The variable is named `ADEVAR_API_KEY` after the track sponsor, but it is actually intended for the Encrypt SDK / Ika backend. Because a public developer portal does not exist yet, **you do not need an API key.** All API keys are **100% optional**. If left blank, the app will automatically fall back to generating mock ZK proofs so you can test the entire flow uninterrupted.\n\n---\n\n## 📱 User Flow\n\n### 1. Landing Page\nPremium glassmorphism hero with particle canvas, orbital rings, animated counters, and mesh gradient background. Floating sponsor badges (Encrypt, Ika, Adevar) and staggered entrance animations.\n\n### 2. Trading Terminal\nCreate encrypted OTC offers with asset selection, amount input (encrypted on-chain), and visible liquidity band (ZKP). Real-time ZK proof generation simulation.\n\n### 3. Dark Pool Liquidity\nBrowse available encrypted orders showing only visible bands. Order IDs, asset types, and status — all trade details hidden via zero-knowledge proofs.\n\n### 4. Privacy Gap Comparison\nSplit-screen view: **Public Explorer** (encrypted gibberish) vs **Civa Dark Desk** (decrypted view). Demonstrates the privacy advantage for authorized participants.\n\n---\n\n## 📂 Project Structure\n\n```\nsrc/\n├── app/\n│   ├── page.tsx                         # Hero + Dashboard\n│   ├── about/page.tsx                   # Project documentation\n│   ├── layout.tsx                       # Root layout + fonts\n│   ├── globals.css                      # Design system + animations\n│   └── api/health/                      # Health check endpoint\n├── components/\n│   ├── HeroSection.tsx                  # Animated hero with particles\n│   ├── StatusBar.tsx                    # Network status bar\n│   ├── Footer.tsx                       # Portfolio footer\n│   ├── OrderCreator.tsx                 # Encrypted order form\n│   ├── LiquidityBoard.tsx              # Dark pool order table\n│   └── ComparisonSplitScreen.tsx        # Public vs Private view\n├── lib/\n│   └── adevar.ts                        # Encrypt/Ika SDK client\ndocs/\n├── ARCHITECTURE.md                      # System architecture\n└── readme-hero.png                      # Hero banner image\n```\n\n---\n\n## 🎨 Design System\n\n| Token | Value | Usage |\n|-------|-------|-------|\n| Background | `#020617` | App background (Slate 950) |\n| Surface | `#0a0f1e` | Cards, panels |\n| Primary | `#06b6d4` | Encrypt/Ika accent (Cyan) |\n| Accent | `#8b5cf6` | Ika/secondary (Purple) |\n| Success | `#22c55e` | Private/verified states |\n| Danger | `#ef4444` | Public/exposed states |\n| Font Brand | Orbitron | Headlines, protocol name |\n| Font Body | Inter | Body text |\n| Font Mono | JetBrains Mono | Data, addresses, terminal |\n\n---\n\n## 🏆 Sponsor Tracks\n\n| Track | Sponsor | Prize |\n|-------|---------|-------|\n| Encrypted Capital Markets | Encrypt \u0026 Ika | $15,000 |\n| Security Audit Credits | Adevar Labs | $50,000 |\n| General Track | 100xDevs | $10,000 |\n\n---\n\n## 🛡️ Security Architecture\n\n| Threat | Mitigation |\n|--------|------------|\n| Front-running | All order params encrypted via Encrypt SDK |\n| Vault drainage | Multi-sig admin, timelock on upgrades |\n| Double-spend | Atomic escrow — both sides lock first |\n| Timeout exploitation | Auto-refund after configurable timeout |\n| Oracle manipulation | No oracle — peer-to-peer pricing |\n\n### Security Statement\nCiva handles institutional liquidity and executes complex atomic settlements using novel cryptographic primitives (Encrypt SDK) and custody logic (Ika SDK). Because our core value proposition is secure, zero-MEV trading, our architecture must be impenetrable. A professional security audit from Adevar Labs is critical to validating our escrow mechanisms, zero-knowledge integrations, and Anchor program safety before we can safely onboard institutional capital to the Solana mainnet.\n\n---\n\n## 💰 Funding \u0026 Pitch Deck\n\n- **Pitch Deck:** [View our complete investor pitch deck](https://civa.edycu.dev/pitch)\n- **Funding Stage:** Civa is currently bootstrapped. We are actively utilizing the Colosseum Frontier Hackathon to validate our product-market fit.\n- **Future Plans:** Post-hackathon, we plan to raise a pre-seed round to fund a mainnet launch, finalize our security audits, and execute our initial go-to-market strategy targeting high-volume OTC traders.\n\n---\n\n## 📄 License\n\n[MIT](LICENSE)\n\n---\n\n\u003cp align=\"center\"\u003e\n  \u003cstrong\u003eBuilt for the \u003ca href=\"https://www.colosseum.org/\"\u003eColosseum Frontier Hackathon\u003c/a\u003e\u003c/strong\u003e\u003cbr/\u003e\n  \u003csub\u003eby \u003ca href=\"https://x.com/edycutjong\"\u003e@edycutjong\u003c/a\u003e\u003c/sub\u003e\n\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedycutjong%2Fciva","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fedycutjong%2Fciva","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedycutjong%2Fciva/lists"}