Vote
Vote on proposal by yes, or no by of dao tokens.
Dao vote proof
- Calculate, and reveal proposal token commitment to vote on
- Derive, and reveal proposal
- Calculate, and Reveal yes-vote 0/1 for no/yes commitment =vote^{yes}*vote^{all^}
- Reveal all-vote value commitment
Public inputs | Description |
---|---|
proposal token commitment as field element | |
proposal | proposal commitment as field element |
yes vote commitment x coordinate | |
yes vote commitment y coordinate | |
all votes commitment x coordinate | |
all votes commitment y coordinate |
Witnesses | Description |
---|---|
proposal destination public key x coordinate | |
proposal destination public key y coordinate | |
amount in proposal token | |
tokenId | proposal token id |
proposal commitment blinding factor | |
proposerLimit | governance token necessary for the vote to be valid |
quorum | minimum number of votes necessary to pass the proposal |
proposal approval ratio quotient | |
proposal approval ratio base | |
tokenId | governance token id |
dao public key x coordinate | |
dao public key y coordinate | |
bulla commitment blinding factor | |
yes vote direction a boolean as either 0/1 for no/yes | |
yes vote commitment blinding factor | |
all votes value | |
blinding term for all votes commitments | |
governance token blinding term |
Circuit checks
- Validate that is either 0, or 1.