[{"data":1,"prerenderedAt":104},["ShallowReactive",2],{"project-\u002Fprojects\u002Fzkpredict":3},{"id":4,"title":5,"body":6,"demo":83,"description":75,"extension":84,"featured":85,"meta":86,"navigation":87,"order":88,"path":89,"pitch":90,"repo":91,"seo":92,"showcase":83,"stack":93,"stem":99,"tags":100,"__hash__":103},"projects\u002Fprojects\u002Fzkpredict.md","zkPredict",{"type":7,"value":8,"toc":74},"minimark",[9,14,18,21,25,28,31,34,38,41,44,48,55,61,67,71],[10,11,13],"h2",{"id":12},"the-problem","The problem",[15,16,17],"p",{},"Prediction markets are one of the better mechanisms we have for aggregating what\npeople actually believe — and they are almost all completely public. Your\npositions are visible, your wallet is traceable, and every bet you place is\npermanently attributable to you.",[15,19,20],{},"That has a cost beyond privacy. If your position can be watched, it can be traded\nagainst and copied; and people with genuinely informative views are the ones most\nlikely to stay out.",[10,22,24],{"id":23},"what-i-built","What I built",[15,26,27],{},"A prediction market where betting is private end to end. You can create a market,\nmint outcome tokens, place a bet, and claim your winnings without revealing which\nside you took — rewards are claimed by proving entitlement rather than by\npresenting an identity.",[15,29,30],{},"Built as a Leo program on Aleo with a React front end that handles wallet\nconnection, market creation, and the betting flow.",[15,32,33],{},"I built both the on-chain program and the interface.",[10,35,37],{"id":36},"how-it-works","How it works",[15,39,40],{},"Market state that must be public — the question, the deadline, the pools, whether\nit is open — is public. Everything identifying is not. A bet produces a private\nrecord held by the bettor rather than an entry in a public ledger.",[15,42,43],{},"Claiming a reward is the interesting part: instead of showing who you are and\nlooking up what you are owed, you prove you hold a winning record and that it has\nnot already been spent. The chain verifies the proof without learning which\nrecord it was.",[10,45,47],{"id":46},"decisions-and-trade-offs","Decisions and trade-offs",[15,49,50,54],{},[51,52,53],"strong",{},"Privacy as the default, not a mode."," An optional privacy feature is worse than\nnone: the act of switching it on is itself a signal. Making every bet private\nmeans using the system reveals nothing.",[15,56,57,60],{},[51,58,59],{},"Leo and Aleo over a general-purpose chain."," Building this on a transparent\nchain means bolting on a mixer or a rollup and hoping the seams hold. A platform\nwhere private state is the native primitive makes the guarantee structural rather\nthan an add-on.",[15,62,63,66],{},[51,64,65],{},"A narrow feature set."," Market creation, betting, closing, claiming, refunds.\nNo order book, no secondary trading. The privacy guarantee is the product, and\nevery extra surface is another place to leak.",[10,68,70],{"id":69},"what-id-do-differently","What I'd do differently",[15,72,73],{},"I would design the resolution path first. Betting privately is the interesting\ncryptography, but a prediction market is only as trustworthy as its oracle, and\nwe solved the elegant problem before the load-bearing one. Resolution deserved\nthe first design conversation, not the last.",{"title":75,"searchDepth":76,"depth":76,"links":77},"",2,[78,79,80,81,82],{"id":12,"depth":76,"text":13},{"id":23,"depth":76,"text":24},{"id":36,"depth":76,"text":37},{"id":46,"depth":76,"text":47},{"id":69,"depth":76,"text":70},null,"md",false,{},true,6,"\u002Fprojects\u002Fzkpredict","An anonymous prediction market. Your bet stays yours — nobody can see what you backed, or that you backed anything.","https:\u002F\u002Fgithub.com\u002FalphabetaZK\u002Fprediction_market_leo",{"title":5,"description":75},[94,95,96,97,98],"Leo","Aleo","Zero-knowledge proofs","React","TypeScript","projects\u002Fzkpredict",[101,94,102,98],"Zero-Knowledge","Privacy","F-0gtuhNPVcv2d7eHmJWNIioiFdB--smqtgYzUHJPyk",1793108521270]