Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PSE Core Program Stage II: Number Guessing Game #9

Closed
9 of 10 tasks
jimmychu0807 opened this issue Sep 4, 2024 · 1 comment
Closed
9 of 10 tasks

PSE Core Program Stage II: Number Guessing Game #9

jimmychu0807 opened this issue Sep 4, 2024 · 1 comment
Assignees

Comments

@jimmychu0807
Copy link
Owner

jimmychu0807 commented Sep 4, 2024

Number Guessing Game

  • Number guessing game: the game data is stored on-chain.
  • zkp: range proof is performed when each player submit a number on-chain.
  • zkp: proof is performed when each player reveal their number. The number will be stored in browser local storage first and later compute proof for revelation. It will be verified on-chain.
  • Hardhat test cases for the zkp range proof and number proof verification on smart contract.
  • Reveal only the winning submission, but not the actual mean.
  • Have an advanced mode allowing ppl to submit commitment out of range and open commitment not the same as what it submitted, by URL param e.g. /game/X?advanced=true.
  • Add instructions on how to play the game
  • Able to deploy the game on OP Testnet
  • Write a blogpost & record a video to document your dev progress, learning, and difficulty overcame.
  • Frontend subscribes to chain events, so you don't have to do a hard refresh.
@jimmychu0807 jimmychu0807 self-assigned this Sep 4, 2024
@jimmychu0807 jimmychu0807 pinned this issue Sep 4, 2024
@jimmychu0807 jimmychu0807 changed the title Project Spec PSE Core Program: Stage II Spec Sep 4, 2024
@jimmychu0807 jimmychu0807 changed the title PSE Core Program: Stage II Spec PSE Core Program Stage II: Number Guessing Game Sep 16, 2024
@jimmychu0807
Copy link
Owner Author

This is resolved. The last one on chain subscription will be opened in a separate issue.

@jimmychu0807 jimmychu0807 unpinned this issue Sep 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant