Pokerr

Pokerr

First Texas Holdem Poker without ZK using FHE. On Base.

Pokerr

Pokerr

First Texas Holdem Poker without ZK using FHE. On Base.

The problem Pokerr solves

Background

First, centralized poker games have been notoriously famous for their problems. Hand manipulation, card eavesdropping, etc. With the rise of crypto, people have been trying to build decentralized solutions.

Existing Solution's Problem

'Mental Poker', a paper written by the founders of RSA, as many people trying to build poker on-chain trying to implement has been a very popular, fair, and decentralized solution for players. The idea is to have each player shuffle & encrypt a deck locally. However, mental poker requires submitting a ZKProof, alongside each poker shuffle & encrypt on their device, which drastically slows down the experience.

How to solve it

With the latest Fully Homomorphic Encryption (FHE) technology, we can have smart contracts to do the work of FHE for the sake of the player without leaking the information, which means there is no need for users to submit ZKProof. This has huge potential to drastically improve the speed & UX. As a result, we build this project to test out this innovative route.

Plan

Layer 3 - While there is a lot of optimization going on on L2, having a game layer (layer 3) is very important and can make ux even smoother. We want to implement or integrate layer 3 to make the poker game smoother.
AA - AA can also reduce the interaction one needs to have on-chain per poker game to 0.

Challenges I ran into

  1. Implementing a poker game (especially a full texas holdem) is indeed a big scope for this hackathon considering the hiddenknowledge.
  2. FHE is hard to implement. It's a fairly new space and bit-wise operation is not easy.
  3. Short of staff - teammate got sick :( Just need to be more creative when using different resources.

Tracks Applied (3)

Build a Consumer Product

This project is deployed to Base Sepolia :). Also since this is a Texas Holdem app this falls into the consumer product ...Read More

Base

Pioneer Novel Confidential dApps

Use FHE for card shuffle, encryption & decryption. FHE is essential for such an implementation w/o zk.

Inco Network

Fhenix - Build Dapps on ETH L2 using FHE

Use FHE for card shuffle, encryption & decryption. FHE is essential for such an implementation w/o zk.

Fhenix

Cheer Project

Cheering for a project means supporting a project you like with as little as 0.0025 ETH. Right now, you can Cheer using ETH on Arbitrum, Optimism and Base.

Discussion