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

Merkle Accumulator for voter addresses in each proposal #354

Open
Orland0x opened this issue Sep 28, 2022 · 2 comments
Open

Merkle Accumulator for voter addresses in each proposal #354

Orland0x opened this issue Sep 28, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@Orland0x
Copy link
Contributor

We would store a merkle root of the list of addresses who have voted. Then each time someone votes, they would send a merkle proof of exclusion from this list to prevent double voting. If the voter has not already voted, the proof would pass and then the merkle root would be updated to include the new voter.

Currently we write a new storage slot for each voter, whereas this approach would mean we just need a single slot containing the merkle root for all voters.

@Orland0x
Copy link
Contributor Author

Orland0x commented Oct 4, 2022

The Issue with the standard merkle accumulator is that the proofs submitted by voters/relayers would change after every vote is cast. This makes the system susceptible to front running attacks which could lead to censorship.

This paper seeks to address this issue: https://eprint.iacr.org/2015/718.pdf
Allowing the proofs to be updated sub-linearly in the number of additions to the accumulator. However they only discuss proofs of membership whereas we require proofs of non-membership.

@pscott pscott added the enhancement New feature or request label Sep 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants