Skip to content

Commit

Permalink
Merge branch 'feat/anon-poll-joining' into feat/anon-poll-joining
Browse files Browse the repository at this point in the history
  • Loading branch information
djanluka authored Aug 8, 2024
2 parents dd21e4d + e84f610 commit 9f64bb5
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions circuits/ts/__tests__/ProcessMessages.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -505,6 +505,7 @@ describe("ProcessMessage circuit", function test() {

// The new roots, which should differ, since at least one of the
// messages modified a Ballot or State Leaf

const newStateRoot = poll.pollStateTree?.root;
const newBallotRoot = poll.ballotTree?.root;

Expand Down
1 change: 1 addition & 0 deletions cli/tests/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export const MESSAGE_BATCH_SIZE = 20;
const coordinatorKeypair = new Keypair();
export const coordinatorPubKey = coordinatorKeypair.pubKey.serialize();
export const coordinatorPrivKey = coordinatorKeypair.privKey.serialize();

export const pollJoiningTestZkeyPath = "./zkeys/PollJoining_10_test/PollJoining_10_test.0.zkey";
export const processMessageTestZkeyPath = "./zkeys/ProcessMessages_10-20-2_test/ProcessMessages_10-20-2_test.0.zkey";
export const tallyVotesTestZkeyPath = "./zkeys/TallyVotes_10-1-2_test/TallyVotes_10-1-2_test.0.zkey";
Expand Down
1 change: 1 addition & 0 deletions contracts/contracts/Poll.sol
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ contract Poll is Params, Utilities, SnarkCommon, EmptyBallotRoots, IPoll {

/// @notice flag for batch padding
bool public isBatchHashesPadded;

/// @notice Poll state tree for anonymous joining
LazyIMTData public pollStateTree;

Expand Down
1 change: 1 addition & 0 deletions contracts/contracts/interfaces/IMACI.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;

import { IVerifier } from "./IVerifier.sol";
import { IVkRegistry } from "./IVkRegistry.sol";
import { DomainObjs } from "../utilities/DomainObjs.sol";
Expand Down

0 comments on commit 9f64bb5

Please sign in to comment.