Skip to content

A wordle game with zk magic to prove you found the answer in n attempts without revealing the answers

Notifications You must be signed in to change notification settings

CleanPegasus/zk-wordle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

zk-Wordle


zk-Wordle is a zero-knowledge proof implementation of the popular word game Wordle. This project leverages cryptographic techniques to verify the correctness of a Wordle solution without revealing the solution itself.

Circuits

  • private input signal -> answer

  • private input signal -> attempts

  • output signal -> final array

  • output signal -> answer hash


  • constrain all letters to be ASCII / 0
  • create an array of an attemp letter compared against all answer letter
  • find the greates value of the array for each attempt letter
  • create a poseidon hash of the answer

How It Works
  • Prompts the user for 5 attempts.
  • Converts each attempt to ASCII and checks it against the answer.
  • Generates and verifies a zero-knowledge proof.
  • Displays the results and proof verification status.

About

A wordle game with zk magic to prove you found the answer in n attempts without revealing the answers

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages