About
## Wave 1 submission
PrivatePredict is a privacy-preserving football prediction dApp built on Midnight. In Wave 1 we delivered the complete commit-and-reveal lifecycle on the Midnight Preview testnet.
What was built and verified:
MIDNIGHT CONTRACT
- Compact contract (PredictionBoard) with four circuits: submitPrediction(commitment), closeMatch(), publishResult(result), revealPrediction(prediction, salt) - Commitment-only prediction submission — the salt never touches the chain before reveal - Organizer authorization on closeMatch/publishResult via witness-based key verification - Prediction ownership verification on revealPrediction - Mock scoring: 3 points correct, 0 incorrect - 15/15 contract simulation tests passing against the real compiled contract
API LAYER
- TypeScript PredictionBoardAPI with deploy/join, per-circuit call methods, and a reactive RxJS derived-state observable - computeCommitment using Midnight's persistentHash primitive - localStorage-backed private-state persistence scoped per contract address (pending prediction + salt survive reload and reconnect) - 12/12 API tests passing
FRONTEND
- React + Vite participant app with full commit → wait → reveal → verify flow - Separate organizer-only deploy tool (deploy.html) - Lace wallet integration with local Docker proof server - Premium UI: editorial match scoreline with team crests, burgundy design system, Inter variable font, collapsible How It Works, emotional score reveal with verification checklist, clipboard copy buttons for organizer - Ownership-scoped UI — personal copy and reveal actions gated on isPredictionOwner; neutral copy for non-owners - Privacy Panel showing public vs private data per lifecycle stage - 161/161 frontend tests passing
LIVE TESTNET VERIFICATION
- Full deploy → commit HOME → close → publish DRAW → reveal → 0 points run on Midnight Preview testnet - Full deploy → commit → close → publish same outcome → reveal → 3 points run on Midnight Preview testnet - localStorage-persisted identity surviving reconnect verified live
Live demo: https://privatepredict.vercel.app GitHub: https://github.com/girume1/privatepredict Demo video : https://youtu.be/TTJZqf7lSuE
Wave 2 will be -> Evolve PrivatePredict from a privacy-focused prediction MVP into a complete football prediction platform, introducing full match pages, live odds, prediction amounts, leaderboards, user profiles, history, and additional privacy-preserving features.
From the public Akindo product page. Votes, swipes and the judge score are hackfeed's own.





