project screenshot 1
project screenshot 2
project screenshot 3
project screenshot 4
project screenshot 5
project screenshot 6

Wordl3

An onchain version of the popular word game Wordle that keeps group scores fair, private, and hint-free. Now, groups can share their daily Wordle scores without unintentionally giving hints – scores are encrypted and visible only to invited players.

Wordl3

Created At

ETHGlobal Bangkok

Project Description

Our project is an on-chain, Web3 version of Wordle built to ensure a fair, private, and fun experience for groups that share daily scores. Traditional group threads often lead to accidental hints through score sharing, especially when players use the same starting words. By putting Wordle on-chain and leveraging decentralized encryption, we can eliminate hints by securely storing guesses and score data on the blockchain. The game is token-gated with NFTs, allowing users to share scores within an exclusive, private group while maintaining the integrity of each player’s experience. Only invited players can access encrypted scores, ensuring no information leaks beyond the group. This project combines the social fun of score-sharing with the security and fairness of blockchain, making it an innovative solution for competitive Wordle fans. Key features include: • Token-Gated Access: Only users holding a specific NFT can access the game, ensuring private, secure group play. • Encrypted Guess Data: All guess data is encrypted, allowing only invited players who have already submitted answers for the day to view scores while maintaining data privacy on-chain. • Smart Contract Management: We leverage custom smart contracts to handle group creation, user access, and encrypted score storage, keeping the game fully decentralized. • ENS and Wallet Integration: Players can join via wallet or ENS domain, and their results are visible to other group members without compromising data security. • On-Chain Leaderboard: Scores are logged on-chain, enabling transparent and tamper-proof group leaderboards while keeping individual guesses secure.

How it's Made

This Wordle project combines several powerful Web3 tools and protocols to create a private, token-gated experience that integrates seamless access, security, and data indexing for game participants. 1. Authentication & Wallet Connectivity (Privy): To make the application both secure and user-friendly, Privy handles wallet connectivity and authentication. Privy Wallet ensures a smooth onboarding process, allowing users to log in with their wallet or ENS address and access all game features effortlessly. 2. Data Encryption (Lit Protocol): Privacy of scores is crucial to the gameplay, as scores provide hints. Using Lit Protocol, scores are encrypted on-chain and can only be decrypted once a player has submitted their score, with this condition enforced on-chain by our custom smart contract. Scores remain private and viewable only by authorized players. This encryption extends to all score data, making it invisible even on block explorers, an essential step to preserve fair gameplay across teams. 3. Game State Management (Chainlink Oracle): To maintain the integrity of daily gameplay, Chainlink Oracle manages the game’s reset cycle every 24 hours. This oracle-based automation keeps game rounds in sync and provides a consistent experience for all users without requiring manual intervention. 4. Data Indexing (Graph Protocol): We deployed a subgraph to index historical data, which adds depth to the user experience, letting players track past game performance. The Graph Protocol indexes and serves this encrypted data, allowing us to retrieve encrypted scores and process them off-chain, enabling players to view and compare previous scores and records, adding value to the gameplay without compromising on-chain storage efficiency. 5. ENS Name Resolution: To make the invite process smooth, ENS names are automatically resolved to wallet addresses, streamlining the user experience. This feature allows team members to invite others easily, supporting both wallet and ENS-based invites. 6. Token-Gated Access (NFTs): The application issues NFTs as access tokens, granting invited players entry into private Wordle groups. This token-gated model, made possible by NFTs, ensures exclusive access while adding an element of community-building around gameplay. 7. Frontend and Gameplay Logic: Built on Next.js and React, the frontend provides a responsive and engaging UI. Core Wordle mechanics come from an open-source library, vue-wordle link, adapted for this project’s unique gameplay features and extended with encrypted data and on-chain connectivity. 8. Backend score submission: we deployed an express server that manages the private key of the wordle contract owner, ensuring that only valid scores are recorded on chain and making the experience gassless for users.

background image mobile

Join the mailing list

Get the latest news and updates