[NCR#1 Proposal] TruthOracle: Modular ZK-Enhanced Crypto Prediction Market Resolver using zkEmail #5816
gittysachin
started this conversation in
[NRG#1] zkEmail
Replies: 2 comments 1 reply
-
Is there a reason you're so interested in berachain? Seems like an odd choice to make when it could be chain agnostic. |
Beta Was this translation helpful? Give feedback.
1 reply
-
Selected proposals for NCR#1 are announced: https://github.com/orgs/noir-lang/discussions/5932 Thank you for your support on the initiative. NCR is just one of the many ways to start your explorations with Noir, check the announcement for more potential ways to collaborate. Personally resonates with the project idea, but was skeptical with the choice of blockchain environment. Either way, let's bring the world ZK! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Summary:
This proposal outlines the development of a modular prediction market platform built on Berachain, leveraging zkEmail authentication using Noir. Each feature of the platform will be built as a standalone module that can be used as an SDK in other projects. The system will allow users to create prediction markets, deploy smart contracts linked to their email accounts, and verify outcomes using zero-knowledge proofs (ZKPs) derived from exchange data. The modular approach will ensure flexibility, reusability, and integration potential with other projects, while the use of zkEmail will maintain privacy and security.
Methodology:
We will develop an MVP demonstrating the secure and private resolution of crypto prediction markets using zkEmail. The platform will integrate with data sources, generate zero-knowledge proofs for data authenticity, and resolve prediction markets based on verified outcomes. Key steps include porting zk circuits from Circom to Noir, deploying account contract linked with email, developing the token minting process, creating a comprehensive system to handle prediction markets, and reward distribution efficiently.
System Design:
Modular Architecture
zkEmail Authentication with Noir
Wallet: Account Deployment on Sign-up
Custom Indexer Development
Prediction Market Creation and Management
Oracle Verification with Noir ZKPs
Zero-Knowledge Proof Generation
Market Resolution
Incentive Mechanism
Dashboard
User Flow:
User Registration
Users securely sign up and authenticate via zkEmail. Their email address is verified using zkEmail, and a smart contract is deployed on the Berachain linked to their email.
Account Deployment
Upon registration, users deposit a small fee to deploy a smart contract account on the Berachain, which manages their prediction market interactions and funds.
Prediction Submission
Users submit predictions on various crypto-related markets (e.g., BTC-USDC, ETH-USDT) through the platform interface. They can participate in existing markets or create new ones, specifying their predictions and stakes.
Data Collection and Encryption
The platform integrates with real-time data sources like exchanges (ByBit, Binance, OKX) to fetch relevant data. This data is collected and encrypted to ensure privacy and security.
Zero-Knowledge Proof Generation
zk proofs are generated using Noir to verify the authenticity and integrity of the encrypted data. This ensures that the data used in market resolution is accurate and tamper-proof.
Market Resolution
Once the prediction event concludes, the system uses the verified oracle data to determine the outcome. The oracle data is compared against user predictions to identify which predictions are correct.
Outcome Verification
zk proofs are used to verify the market outcome, ensuring that the data and predictions are accurate and that the outcome is fair.
Incentive Distribution
Rewards are distributed based on the market outcomes. Collaterals are distributed to users with correct predictions, and pioneers who created the market receive their share of the betting pool.
Dashboard Interaction
Users interact with the dashboard to create and manage markets, track their current predictions, view earned tokens, and review their prediction history.
Tech Stack:
Timeline and Deliverables:
Week 1: Planning and Setup
Week 2: zkEmail Authentication
Week 3: Account and Indexer Development
Week 4: Prediction Market Creation Module
Week 5: Core Module Development
Week 6: zk Proofs and Incentive Mechanism
Week 7: Dashboard and Security Features
Week 8: Testing and Integration
Week 9: Deployment and Documentation
Week 10: Review and Support
Team:
Sachin Jangid: Senior Backend Engineer
Saurav Kumar: Rockstar Frontend Engineer
Start Date
Beta Was this translation helpful? Give feedback.
All reactions