Skip to content

Commit

Permalink
fix groth16 verifier pub signals check (#518)
Browse files Browse the repository at this point in the history
Co-authored-by: Jordi Baylina <[email protected]>
  • Loading branch information
Arvolear and jbaylina authored Oct 18, 2024
1 parent 99eb19e commit 6519198
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/verifier_groth16.sol.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ contract Groth16Verifier {
mstore(0x40, add(pMem, pLastMem))

// Validate that all evaluations ∈ F
<% for (let i=0; i<IC.length; i++) { %>
<% for (let i=0; i<nPublic; i++) { %>
checkField(calldataload(add(_pubSignals, <%=i*32%>)))
<% } %>

Expand Down

0 comments on commit 6519198

Please sign in to comment.