Skip to content

Commit

Permalink
solidity-verifiers: groth16 template: port the fix from iden3/snarkjs…
Browse files Browse the repository at this point in the history
  • Loading branch information
arnaucube committed Apr 11, 2024
1 parent 68edf1d commit c558e78
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions solidity-verifiers/templates/groth16_verifier.askama.sol
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ contract Groth16Verifier {
function verifyProof(uint[2] calldata _pA, uint[2][2] calldata _pB, uint[2] calldata _pC, uint[{{ gamma_abc_len - 1 }}] calldata _pubSignals) public view returns (bool) {
assembly {
function checkField(v) {
if iszero(lt(v, q)) {
if iszero(lt(v, r)) {
mstore(0, 0)
return(0, 0x20)
}
Expand Down Expand Up @@ -166,4 +166,4 @@ contract Groth16Verifier {
return(0, 0x20)
}
}
}
}

0 comments on commit c558e78

Please sign in to comment.