-
Notifications
You must be signed in to change notification settings - Fork 8
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
Add simple ZkProgram use to Mina template #74
base: main
Are you sure you want to change the base?
Conversation
@@ -26,7 +25,83 @@ class Sudoku extends Struct({ | |||
} | |||
} | |||
|
|||
class SudokuZkApp extends SmartContract { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably we don't want to delete the old contract, and rather have an example of both options
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This -
gets +
'd back later in the file, so SudokuZkApp
still exists. Its submitSolution
signature does change, but I could also put it back and add the new one as submitSolution2
or something.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, both methods are now demonstrated.
Demonstrates that ZkProgram can be used to generate and verify proofs that can then be verified independently from Mina or as inputs to Mina contracts.