Skip to content

Instantly share code, notes, and snippets.

@johnson86tw
Last active June 14, 2021 05:57
Show Gist options
  • Save johnson86tw/a2cca274c4f08aff22afc7ee5bf480bb to your computer and use it in GitHub Desktop.
Save johnson86tw/a2cca274c4f08aff22afc7ee5bf480bb to your computer and use it in GitHub Desktop.
function process(uint256[2] memory a, uint256[2][2] memory b, uint256[2] memory c, uint256[1] memory publicSignals) public {
require(isAnswer(publicSignals[0]), "incorrect answer");
require(verifier.verifyProof(a, b, c, publicSignals), "invalid");
_setGreeting("answer to the ultimate question of life, the universe, and everything");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment