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

Game master signature workflow #109

Open
1 of 13 tasks
peersky opened this issue Jan 4, 2025 · 0 comments · May be fixed by #110
Open
1 of 13 tasks

Game master signature workflow #109

peersky opened this issue Jan 4, 2025 · 0 comments · May be fixed by #110
Assignees

Comments

@peersky
Copy link
Member

peersky commented Jan 4, 2025

  • Whenever player joins the game jointSecret & Signature is sent from CVPP node API
  • Game master sends signature, signaling that jointSecret was issued to address
  • Player submits this signature together with his join game transaction
  • Whenever player submits a vote/proposal (actionData) they
    • submit
      • hash(encrypt(actionData)+jointSecret) to game master
      • encrypt(actionData)
    • Node returns back signature of that hash IF data validation passes
    • Submit transaction with CVPP server signature and encrypted actionData+jointSecret
  • endTurn stage Game Master submits
    • New jointSecrets encrypted with participant pubKeys
    • jointSecrets publicly allowing anyone to decode data
    • Contract verifies actionData integrity against stored hash(encrypt(actionData)+jointSecret)
@peersky peersky linked a pull request Jan 4, 2025 that will close this issue
@peersky peersky moved this to In progress in OpenSource Kanban Board Jan 6, 2025
@peersky peersky self-assigned this Jan 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In progress
Development

Successfully merging a pull request may close this issue.

1 participant