Minimal Anti Collusion Infrastructure (MACI) / IPoll
Interface: IPoll
Defined in: utils/types.ts:70
An interface which represents the public API of the Poll class.
Methods
copy()
copy():
Poll
Defined in: utils/types.ts:82
Returns
equals()
equals(
poll
):boolean
Defined in: utils/types.ts:83
Parameters
poll
Returns
boolean
hasJoined()
hasJoined(
nullifier
):boolean
Defined in: utils/types.ts:72
Parameters
nullifier
bigint
Returns
boolean
hasUnprocessedMessages()
hasUnprocessedMessages():
boolean
Defined in: utils/types.ts:79
Returns
boolean
hasUntalliedBallots()
hasUntalliedBallots():
boolean
Defined in: utils/types.ts:81
Returns
boolean
padLastBatch()
padLastBatch():
void
Defined in: utils/types.ts:87
Returns
void
processAllMessages()
processAllMessages():
object
Defined in: utils/types.ts:80
Returns
object
ballots
ballots:
Ballot
[]
stateLeaves
stateLeaves:
StateLeaf
[]
processMessages()
processMessages(
pollId
):IProcessMessagesCircuitInputs
Defined in: utils/types.ts:76
Parameters
pollId
bigint
Returns
publishMessage()
publishMessage(
message
,encryptionPublicKey
):void
Defined in: utils/types.ts:74
Parameters
message
Message
encryptionPublicKey
PublicKey
Returns
void
setCoordinatorKeypair()
setCoordinatorKeypair(
serializedPrivateKey
):void
Defined in: utils/types.ts:85
Parameters
serializedPrivateKey
string
Returns
void
tallyVotes()
tallyVotes(
mode
):IVoteTallyCircuitInputs
Defined in: utils/types.ts:77
Parameters
mode
Returns
toJSON()
toJSON():
IJsonPoll
Defined in: utils/types.ts:84
Returns
updateChainHash()
updateChainHash(
messageHash
):void
Defined in: utils/types.ts:86
Parameters
messageHash
bigint
Returns
void