Vote

Vote on proposal by yes, or no by of dao tokens.

Dao vote proof

Public inputsDescription
proposal token commitment as field element
proposalproposal commitment as field element
yes vote commitment x coordinate
yes vote commitment y coordinate
all votes commitment x coordinate
all votes commitment y coordinate
WitnessesDescription
proposal destination public key x coordinate
proposal destination public key y coordinate
amount in proposal token
tokenIdproposal token id
proposal commitment blinding factor
proposerLimitgovernance token necessary for the vote to be valid
quorumminimum number of votes necessary to pass the proposal
proposal approval ratio quotient
proposal approval ratio base
tokenIdgovernance 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.