-
Notifications
You must be signed in to change notification settings - Fork 157
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
refactor(nonqv): optimize tally votes non qv circuit and contracts #1174
Conversation
✅ Deploy Preview for maci-typedoc ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Slither found more than 20 potential problems in the proposed changes. Check the Files changed tab for more details.
1273880
to
9ef7e30
Compare
9ef7e30
to
9060662
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ctrlc03 thanks, just few comments, and can you add TallyNonQv contract and factory to contracts/tasks/deploy
?
1a2aa96
to
d60e452
Compare
There are some missing parts:
|
d60e452
to
08ca900
Compare
Added! |
reduce the number of constraints for the tally votes non qv circuit, and amend the repo code to support the changes. This includes a new Tally contract with reduced logic which has been removed from the circuit.
08ca900
to
ea632a9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ctrlc03 thanks!
thanks for your patience with this review 🙂 |
Description
Reduce the number of constraints for the
tallyVotesNonQv
circuit, and amend the repo code to support the changes. This includes a new Tally contract with reduced logic (no need for perVOSpentVoiceCredits anymore due to quadratic voting being removed).Relevant code to deploy either factory version of tally has been added, and as far as MACI is concerned, they implement the same interface so no changes were needed on the MACI contract.
With ceremony params (6,2,3) - from 398474 to 371675 constraints
Confirmation