Force uint32 in n in the plonk solidity verifier

This commit is contained in:
Jordi Baylina 2022-02-16 06:28:03 -07:00
parent 4a918a8ba3
commit bfe302e846
No known key found for this signature in database
GPG Key ID: 7480C80C1BE43112

@ -23,7 +23,7 @@ pragma solidity >=0.7.0 <0.9.0;
contract PlonkVerifier {
uint<%=2**Math.ceil(Math.log2(power))%> constant n = <%=2**power%>;
uint32 constant n = <%=2**power%>;
uint16 constant nPublic = <%=nPublic%>;
uint16 constant nLagrange = <%=Math.max(nPublic, 1)%>;