Inspiration
We are an experienced blockchain team with a lot of experience in solidity and the EVM ecosystem. Currently, we are focusing our resources on zero-knowledge technology and its applications. In which the problem with shuffle on-chain for poker and blackjack is what we are focusing on researching.
We set two main goals for our product:
- Become a completely transparent virtual casino
- Build a common consensus (which we call proof of shuffle) for casino games integrated with Zoker
From there, we realized that the Theta network with Theta Video API and Metachain could be the missing piece to complete our product:
Theta Video API: We can easily allow our users to livestream when they participate in our virtual casino games. Their fans can also interact with the casino through tasks such as donating, betting, etc.
Metachain: It is easy to scale casino games when you already own a subchain, and reuse shuffle functions.
What it does
Within the competition, we want to show a complete product that can be ready for launch, so we will focus on building a complete blackjack game entirely on-chain.
Thanks to the use of Circom and the unit matrix, we ensure that the shuffle of the deck is always fair and there is no interference from the dealer.
Hands will not depend on trust in a dealer like traditional game servers.
Players can also livestream their games with their fan community.
How we built it
The logic part is built on an EVM-based smart contract, with the zero-knowledge part created from the Circom framework.
To be able to shuffle on-chain, we will use the following formulas:
In each hand and dealer, the cards will be shuffled by multiplying with the permutations matrix and then encrypted with ElGamal.
shuffle with permutations matrix:
Encrypt each element in the cards array
Decrypt:
Challenges we ran into
Build my own formula to ensure the integrity of the deck after each shuffle of the hands and dealers.
Accomplishments that we're proud of
Time management to be able to submit the product in the most complete way.
What we learned
We have found the missing pieces that our project needs that Theta can provide. For a blockchain product to truly be adopted, we cannot focus solely on technology; we need to address the issues that users are facing.
Zoker has addressed the issue of trust between hand and dealer through zero-knowledge technology.
Thanks to Theta, Zoker can reach different types of users:
- Theta Livestream API: Access to traditional retailers, they can easily participate in casinos by watching livestreams from their idols.
- Metachain: Build a chain for developers of casino games to freely design.
What's next for Zoker
As mentioned above, Zoker will focus on 2 main tasks:
- Become a completely transparent virtual casino
- Build a metachain with my own consensus (which we call proof of shuffle) for casino games integrated with Zoker These are the macro tasks that we have set out. During development, we will rely on market trends to continuously grow users into the ecosystem of Zoker in particular and Theta in general.
References:
- Elgamal formula: https://en.wikipedia.org/wiki/ElGamal_encryption
- Mental Porker: https://en.wikipedia.org/wiki/Mental_poker
Built With
- amazon-web-services
- circom
- etherjs
- react
- solidity
- wagmi
Log in or sign up for Devpost to join the conversation.