project screenshot 1
project screenshot 2
project screenshot 3

FhockFhaperFhissors

An on-chain game of Fhock, Fhaper, Fhissors! Come test your luck!

FhockFhaperFhissors

Created At

ETHGlobal Brussels

Project Description

An on-chain game of Fhock, Fhaper, Fhissors! Deployed: a smart contract against which the user can play a game of rock paper scissors with the inbuilt randomness. However, I also worked on exploring the design space unlocked by private states. For example, you can find a contract for asynchronous pvp rock paper scissors by maintaining the encrypted state for a pending player. When an opponent is found, the game is resolved and the wagers settled.

How it's Made

This is built on the Inco FHEVM. We explore the built-in randomness function which allows for snappy games and UX when compared to all other (secure) randomness in evm (api3, chainlink) that take a few blocks worth of time to generate a number. Additionally, we use encrypted states to unlock async PvP games without needing any type of commitment or other cryptographic manoeuvres from the player. The FE is a simple react app deployed on vercel.

background image mobile

Join the mailing list

Get the latest news and updates