Skip to main content
Version: v3.x

Minimal Anti Collusion Infrastructure (MACI) / IGenerateVoteArgs

Interface: IGenerateVoteArgs

Defined in: sdk/ts/vote/types.ts:7

Interface for the arguments for the generateVote function

Properties​

coordinatorPublicKey​

coordinatorPublicKey: PublicKey

Defined in: sdk/ts/vote/types.ts:46

The coordinator public key


ephemeralKeypair?​

optional ephemeralKeypair: Keypair

Defined in: sdk/ts/vote/types.ts:56

Ephemeral keypair


maxVoteOption​

maxVoteOption: bigint

Defined in: sdk/ts/vote/types.ts:51

The largest vote option index


newPublicKey?​

optional newPublicKey: PublicKey

Defined in: sdk/ts/vote/types.ts:61

New key in case of key change message


nonce​

nonce: bigint

Defined in: sdk/ts/vote/types.ts:26

The nonce for the vote


pollId​

pollId: bigint

Defined in: sdk/ts/vote/types.ts:11

The poll id


privateKey​

privateKey: PrivateKey

Defined in: sdk/ts/vote/types.ts:31

The private key for the vote


salt?​

optional salt: bigint

Defined in: sdk/ts/vote/types.ts:21

The salt for the vote


stateIndex​

stateIndex: bigint

Defined in: sdk/ts/vote/types.ts:36

The state index for the vote


voteOptionIndex​

voteOptionIndex: bigint

Defined in: sdk/ts/vote/types.ts:16

The index of the vote option


voteWeight​

voteWeight: bigint

Defined in: sdk/ts/vote/types.ts:41

The weight of the vote