Expand description
Governance ZKP circuits for the Zally voting protocol.
Contains three circuits:
- Delegation (ZKP #1): Proves delegation of voting rights.
- Vote Proof (ZKP #2): Proves a valid, authorized vote.
- Share Reveal (ZKP #3): Proves a revealed share belongs to a registered vote commitment.
Modules§
- delegation
- Delegation ZKP circuit.
- share_
reveal - Share Reveal ZKP circuit (ZKP #3).
- vote_
proof - Vote proof ZKP circuit (ZKP #2).
Enums§
- Prove
Error - Error returned when Halo2 proof creation fails.
Constants§
- VOTE_
COMM_ TREE_ DEPTH - Depth of the Poseidon-based vote commitment tree. Shared by ZKP #2 (vote_proof) Merkle membership and ZKP #3 (share_reveal) Merkle membership.
Functions§
- share_
commitment - Native per-share blinded commitment:
- shares_
hash - Native full two-level shares hash:
- shares_
hash_ from_ comms - Native counterpart of [
compute_shares_hash_from_comms_in_circuit]. - spend_
auth_ g_ affine - Returns the SpendAuthG generator point (used as G in El Gamal).