Search projects, hackathons, sponsors and tech

    ← All projects

    Texas Hide'em

    No Frontend, No Backend, Just poker-on-chain

    About

    The problem it solves (Please add your own sound effects when you read this) Howdy, Partner. "Texas Hide-Em" our brand-new, fully decentralized poker platform for onchain poker enthusiasts. By leveraging the Oasis Sapphire chain for confidentiality and randomness on the contract side, and hosting the dapp webpage directly on ethstorage, we present a poker dapp that has neither centralized frontend, nor a centralized backend, only a fully decentralized contract. (Whip Sound Effect) If you have been playing online poker regularly, you can remember the scandals with Absolute Poker or Ultimate Bet, where cheating superusers could view other player's cards. Our solution eradicates the superuser dilemma with confidential computing, keeping all cards provably secret until the showdown. (Good Bad and Ugly Theme Riff) This is not just poker; it's the future of online gaming, combining privacy, security, and fairness for all players. Welcome to "Texas Hide-Em," Hide-em high at the mile high city, Denver, Yeeeeeehaw.

    How it's made

    Challenges we ran into * Migration between frontend build systems / frontend challenges - Cultivated Flexibility and Powered through * Source of Secret Onchain Randomness - Used Sapphire RandomBits Precompile * Partially Revealed Cards - Use a homespun hashing technique with player generated keys and brute force on a tiny preimage space * Hand selection from 7 cards is too complex onchain - Client does hand selection (js), contract does hand confirmation * Poker state machine and poker logic was very complex - used https://github.com/dxganta/poker-solidity trust-FUL poker state machine implementation that we altered and adapted https://github.com/thlorenz/phe Poker Hand recognizing code used client side to identify hands