Build an Encrypted Wordle Game Onchain using FHE and Zama's fhEVM
Blog post from Zama
The Zama Bounty Program Season 4 challenged participants to create an onchain game using Zama's fhEVM to maintain private states, resulting in various innovative entries. The successful project "FHEordle" by kroist, an adaptation of the popular Wordle game, stood out for its use of Fully Homomorphic Encryption (FHE) to ensure data privacy on the blockchain, where data is typically public. In this version, players guess a five-letter word represented by encrypted integers within a blockchain setting, using a 26-bit mask to provide feedback on letter presence without revealing specific positions. This game cleverly avoids traditional loops, thereby enhancing efficiency and security. It also employs a Merkle tree to validate words against a list of approved English words, ensuring only the root hash is stored on the blockchain. FHEordle exemplifies the potential of cryptographic techniques in gaming, showing how FHE can elevate privacy and security standards in web3 applications.