Welcome to Stake&Steal — where game theory meets real-world identity, and every round is a battle of trust, wit, and a dash of luck! Built for ETHGlobal, powered by Pyth Network's cosmic entropy, and protected by Self Protocol's ironclad identity, this is the next evolution of the classic Split or Steal game.
Imagine a world where only real, verified humans can play for real stakes. No bots. No cheaters. Just you, your choices, and the thrill of the game. Stake&Steal is:
- 🔒 Bot-proof: Only Aadhaar/Passport-verified users (via Self Protocol) can play
- 🦊 MetaMask-powered: Connect your wallet and jump in
- 🎰 Truly random: Pyth Network entropy ensures every outcome is fair
- 🏆 NFT rewards: Winners get unique, on-chain trophies
- 🚫 Zero tolerance for cheaters: Get caught, get banned — for good
- Connect your MetaMask wallet
- Verify your identity with Self.xyz (Aadhaar or Passport — your choice!)
- Stake and play: Enter the arena, play 5 rounds of Split or Steal, and outsmart your opponent
- Let fate decide: At the end, Pyth entropy brings the randomness, and NFTs are minted for the victors
- Stay honest: Cheaters are zapped by the admin panel and banned on-chain
- ⚛️ Frontend: React.js + Vite + Tailwind CSS for a snappy, modern UI
- 📝 Smart Contracts:
SplitOrSteal.sol: The game enginePrizeNFT.sol: Mints your victory
- 🪪 Identity: Self Protocol SDK + mobile app, storing user IDs on-chain
- 🎲 Randomness: Pyth Network entropy, called directly from the contract (no oracle middlemen!)
- 🌉 Networks: Celo (for identity), Base (for the game) — separate, no bridges
- 5 rounds per game, stake split into 5 parts
- Each round: choose to split or steal
- At the end: rewards distributed based on your choices
- Randomness is requested at game finish
- Only verified humans can play
- Cheaters? Banned by on-chain user ID, forever
- Clone this repo
- Install dependencies in each folder (
frontend,contracts, etc.) - Deploy contracts to Base and Celo testnets
- Run the frontend
- Verify yourself with the Self app (Aadhaar/Passport)
- Connect MetaMask and start playing!
frontend/— React app (UI, wallet, Self integration)contracts/— Solidity contracts for game and NFTentropyseed/— Entropy/randomness demoseed-dapp/— Dapp for randomness/entropy (demo)
- Shaurya Kesarwani
- Aayush Yadav
- Utakarsh Triparthi
- ETHGlobal
- Pyth Network
- Self Protocol