Jigsaw-23122002 / ETH-Mumbai-2024

A Privacy-Focused, Sybil-Resistant, Decentralized Fantasy Cricket Platform

Home Page:https://fairplayxi-sarvagnya.vercel.app/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

FairPlayXI Logo
FairPlayXI

FairPlayXI - A Privacy-Focused, Sybil-Resistant, Decentralized Fantasy Cricket Platform.
5 Track Prizes @ETHMumbai 2024 - Team OffChain Panchayat Samiti

GitHub issues GitHub stars

Table of Contents

📝Description

FairPlayXI is a decentralized and sybil-resistant protocol tailored for fantasy sports enthusiasts. With a strong emphasis on privacy. FairPlayXI aims to revolutionize the realm of fantasy sports, offering an on-chain platform similar to Dream11, specifically tailored for cricket enthusiasts.

Limitations of existing fantasy cricket platforms like Dream11:
  • Dream11, a leading fantasy sports platform, has come under fire for multiple instances of leaked player team data before matches. These breaches have raised significant concerns regarding the platform's handling of user privacy. The repeated occurrence of such incidents highlights the pressing need for stronger data protection measures and transparency protocols within the realm of fantasy sports.
  • Dream11 is embroiled in legal disputes due to the pervasive use of bots, which distort fair competition by artificially inflating betting pools. These automated entities erode the integrity of the platform, necessitating urgent measures to curb their influence and uphold equitable gaming standards for all participants.
  • Dream11's lack of transparency with its scoring system breeds distrust among players, who question the accuracy of leaderboards. Ensuring fairness and clarity is vital for the trust and satisfaction of fantasy sports enthusiasts.
FairPlayXI's Approach to solve these problems:
  1. Our innovative approach involves generating a Merkle Root of each user's meticulously crafted squad of 11 players, arranged in a specific order, before the commencement of the match.
  2. The Merkle Root generated is then combined with the user's address and timestamp, forming a unique squad hash.
  3. To ensure anonymity and resist Sybil attacks, this squad hash is signed using Anon Aadhaar Proof and securely transmitted to our contract for registration. Once registered, any attempt to modify the squad becomes evident, as any alteration would lead to a change in the squad hash. Additionally, the squad remains confidential as the hash assigned to each user is distinct, even if multiple users generate identical squads simultaneously.
  4. Following the match's conclusion, before computing player points, our system employs a Zero-Knowledge (ZK) circuit crafted using the sophisticated Noir ZK DSL on Polygon's zkEVM Cardona Network to validate the squad's integrity.
  5. This stringent verification process ensures fair play and upholds the integrity of our fantasy sports protocol.
  6. The scoring process is facilitated by a Chainlink Any API Oracle, ensuring transparency and reliability, enabling users to send zk-proven query results onchain. This integration further enhances the trust and credibility of our platform by providing real-time, reliable data for accurate score calculations accummulated over decetralised Oracle Network.

Through this seamless combination of cutting-edge technologies, our protocol delivers a secure, fair, and transparent fantasy sports experience, setting a new standard for the industry.

🔗Links

Frontend (Vercel)

Assets

The Graph Subgraph

Deployed Protocol Contract

Deployed ZK Circuit Verifier Contract

Oracle Server

🤖Tech-Stack

  • NextJS + Hardhat from Scaffold-Eth-2 Template for Project Setup
  • The Graph for Event Indexing
  • Noir ZK DSL (Rust-Based)
  • Solidity for Smart Contracts
  • Chainlink Any API for Oracle Score Calculation Integration with Smart Contract

🛠Project Setup

To get FairPlayXI run locally, follow the steps below:

  1. Clone this repo & install dependencies
git clone https://github.com/Jigsaw-23122002/ETH-Mumbai-2024.git
cd ETH-Mumbai-2024
yarn
  1. Start your NextJS app:
yarn start

👩‍💻Contributors

Team Members

About

A Privacy-Focused, Sybil-Resistant, Decentralized Fantasy Cricket Platform

https://fairplayxi-sarvagnya.vercel.app/

License:MIT License


Languages

Language:TypeScript 66.2%Language:Solidity 30.6%Language:JavaScript 1.3%Language:Roff 1.1%Language:CSS 0.4%Language:Shell 0.3%Language:Dockerfile 0.1%