Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[circuits] a quadratic vote tally circuit which supports negative votes #68

Closed
weijiekoh opened this issue Mar 9, 2020 · 1 comment
Closed
Assignees

Comments

@weijiekoh
Copy link
Contributor

weijiekoh commented Mar 9, 2020

Suggestions on how to proceed with this task:

  1. Clone the repository and try out the build and test steps: https://github.com/barryWhiteHat/maci/blob/master/README.md

  2. Read the spec and focus on the processMessage contract functionn updateStateTree circuit, and quadratic vote tally circuit.

  3. Modify the spec with the solution for negative votes

  4. Modify the contract, circuits, and tests. The tests are:

    • circuits/ts/__tests__/BatchUpdateStateTree.test.ts
    • circuits/ts/__tests__/UpdateStateTree.test.ts
    • circuits/ts/__tests__/QuadVoteTally.test.ts
    • contracts/ts/__tests__/Maci.test.ts
  5. Don't worry about Maci.test.ts at the start. It's perfectly fine to update it last.

  6. Get familiar with the way that CircleCI performs a trusted setup whenever we modify a circuit, and take advantage of it to save time. You can download the circuit, proving keys, verification keys, and verifier contracts from CircleCI artifacts. See also: https://github.com/barryWhiteHat/maci/blob/master/.circleci/config.yml#L46

@weijiekoh weijiekoh created this issue from a note in Minimum Viable MACI (Sprint 3 (9-20 March)) Mar 9, 2020
@weijiekoh weijiekoh moved this from Sprint 3 (9-20 March) to Sprint 4 (lockdown) in Minimum Viable MACI Apr 10, 2020
@weijiekoh weijiekoh moved this from Sprint 4 (lockdown) to In progress in Minimum Viable MACI Apr 10, 2020
@weijiekoh weijiekoh assigned ChihChengLiang and unassigned kobigurk May 14, 2020
@ChihChengLiang
Copy link
Collaborator

Close this and renew with #109 for better motivation and design approach.

@ChihChengLiang ChihChengLiang moved this from In progress to Done in Minimum Viable MACI May 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

No branches or pull requests

3 participants