Last active
June 14, 2021 05:57
-
-
Save johnson86tw/a2cca274c4f08aff22afc7ee5bf480bb to your computer and use it in GitHub Desktop.
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
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