Created
July 18, 2022 12:22
-
-
Save andresaaap/9609792ffd48c8f76832c72cd3b5f507 to your computer and use it in GitHub Desktop.
Creating simple zero-knowledge verifier contract with ZoKrates (0.5.0) solidity (0.5.0)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def main(private field a, field b) -> (field): | |
field result = if a * a == b then 1 else 0 fi | |
return result |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment