Skip to content

Instantly share code, notes, and snippets.

@andresaaap
Created July 18, 2022 12:22
Show Gist options
  • Save andresaaap/9609792ffd48c8f76832c72cd3b5f507 to your computer and use it in GitHub Desktop.
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)
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