About
## Wave 1 submission
Built HushPot from concept to a deployed, tested, live product during Wave 1:
CONTRACT
- Wrote a Compact smart contract with 5 zero-knowledge circuits: join, pledge, provePledgeAtLeast, closeEntries, claim - Core privacy primitive: provePledgeAtLeast lets a member prove their committed pledge meets a threshold WITHOUT revealing the amount — the statement is proven, the number never crosses the chain boundary - Deployed to Midnight Preprod: contract b14415c2f686ea1ab2dee103876cc3c2012830bc6a5e56a48d87f013c6f4abb4 (deploy tx 0260d4a0..., block 2,401,203)
TESTS & CI
- 51 passing tests across three suites: circuit logic and state transitions (19), privacy surface — private inputs never exposed on-chain (10), wallet-state persistence (22) - GitHub Actions CI pipeline: npm ci + build + full test suite on every push, badge in README - https://github.com/ubongn/hushpot — 40+ descriptive commits from a single builder
FRONTEND (live at https://hushpot.vercel.app/) - React 18 + Vite app with wallet connect/disconnect via Midnight's dapp-connector API (works with Lace and 1AM wallets) - ZK proofs run entirely in-browser via the zkir-v2 WASM prover — no server-side proving, no trusted third party - Privacy-first UX: pledge amount field masks after commitment, "Prove without revealing" button, observer-view privacy banner showing exactly what the chain can and cannot see - Hosted on Vercel, fully functional against the Preprod deployment
HARD PROBLEMS SOLVED (all documented in commit history) - Chrome MV3 service-worker timeouts killing 60-90s in-browser ZK proofs → keep-alive pings + retry path - zkir JSON-to-binary IR conversion for the WASM prover - BLS proving parameters blocked by S3 CORS on deployed frontends → bundled locally - Midnight indexer WebSocket drops during long proofs → submit-async pattern with indexer polling - NIGHT denomination (6 decimals), tagged-hex transaction format for wallet APIs
PRIVACY MODEL (the deliberate core)
Public on-chain: pot state, seat count, membership anchors, proof validity, pot-level counters Private (never on-chain): every member's pledge amount, wallet balances, member identities — only salted commitments cross the boundary
DEMO VIDEO: https://youtu.be/swwd64I1Uw0
From the public Akindo product page. Votes, swipes and the judge score are hackfeed's own.





