Private Voting Contract
Technical Documentation
Methods:
By default, these methods can only be called from an address granted the role CONSUMER_ROLE
Requests the creation of a new ballot.
Successful execution results in the CreateBallotRequested event. minimumVoters
must be greater than zero. Results in the CreateBallotFulfilled
event after the ballot is created in space.
Registers a vote for a particular ballot.
Successful execution results in the VoteRequested
event. Results in the VoteFulfilled
event after the vote is tabulated in space.
Requests the finalization (closure and tabulation) of the ballot identified by ballotId
.
Successful execution results in the FinalizeBallotRequested
event. Results in the FinalizeBallotFulfilled
event after the ballot is finalized in space.
Events:
Signals that a new ballot has been requested.
Signals that a new ballot has been created in space.
Signals that an encrypted vote encryptedVote
has been registered for the unique ballot identifier ballotId
.
Signals that a vote has been registered in space for the given ballotId
.
Signals that a request has been made to finalize the ballot identified by ballotId
.
Signals that the ballot identified by ballotId
has been finalized in space. Ballot result is returned in the result
parameter.
Last updated