Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
lock verifying key after set
  • Loading branch information
sammayo committed Jul 25, 2018
1 parent fb6af14 commit c1d9f39
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ethereum/contracts/Verifier.sol
Expand Up @@ -190,6 +190,7 @@ contract Verifier {
uint[2][2] gamma_beta_2,
uint[2][2] Z,
uint[2][] IC) public {
require(!verifyingKeySet);
require(IC.length <= 5);
vk.A = Pairing.G2Point([A[0][0], A[0][1]], [A[1][0], A[1][1]]);
vk.B = Pairing.G1Point(B[0], B[1]);
Expand Down

0 comments on commit c1d9f39

Please sign in to comment.