Conversation
Implements a voting system using ZK compression where: - Voters prove credential ownership without revealing identity - Nullifier-derived addresses prevent double-voting - Vote choices are public, voter identity is hidden Key components: - vote_proof.circom: 26-level Merkle proof circuit (v1 trees) - VoterCredential: compressed account with Poseidon hashing - VoteRecord: nullifier-addressed to prevent replay Fixed data_hash computation using ToByteArray wrappers (HashedPollId, CredentialPubkey) to avoid double-hashing fields that are already BN254 field elements.
|
Important Review skippedReview was skipped due to path filters ⛔ Files ignored due to path filters (96)
CodeRabbit blocks several paths by default. You can override this behavior by explicitly including those paths in the path filters. For example, including You can disable this status message by setting the ✨ Finishing touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
5d57494 to
d73f9c8
Compare
2b69233 to
66a2bbe
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
zk/directoryzk-idfrom root tozk/zk-id/zk-vote: anonymous voting using ZK proofs with compressed accountszk-vote features
Instructions
create_pollregister_votervoteclose_pollTest plan
cargo test-sbfpasses for zk-vote