Cli Module
Table of contents
Interfaces
- AirdropArgs
- DeployArgs
- DeployPollArgs
- DeployedContracts
- GenLocalStateArgs
- GenProofsArgs
- IGenKeypairArgs
- IGetPollArgs
- IGetPollData
- IPublishBatchArgs
- IPublishBatchData
- IPublishMessage
- IRegisteredUserArgs
- ISignupData
- MergeMessagesArgs
- MergeSignupsArgs
- PollContracts
- ProveOnChainArgs
- PublishArgs
- SignupArgs
- SubsidyData
- TallyData
- TopupArgs
- VerifyArgs
Functions
- airdrop
- checkVerifyingKeys
- deploy
- deployPoll
- deployVkRegistryContract
- fundWallet
- genKeyPair
- genLocalState
- genMaciPubKey
- genProofs
- getPoll
- isRegisteredUser
- mergeMessages
- mergeSignups
- proveOnChain
- publish
- publishBatch
- setVerifyingKeys
- signup
- timeTravel
- topup
- verify
Functions
airdrop
▸ airdrop(AirdropArgs
): Promise
<void
>
Utility that can be used to get topup credits airdropped to the coordinator
Parameters
Name | Type | Description |
---|---|---|
AirdropArgs | AirdropArgs | The arguments for the airdrop command |
Returns
Promise
<void
>
Defined in
commands/airdrop.ts:11
checkVerifyingKeys
▸ checkVerifyingKeys(CheckVerifyingKeysArgs
): Promise
<boolean
>
Command to confirm that the verifying keys in the contract match the local ones
Parameters
Name | Type | Description |
---|---|---|
CheckVerifyingKeysArgs | CheckVerifyingKeysArgs | The arguments for the checkVerifyingKeys command |
Returns
Promise
<boolean
>
Whether the verifying keys match or not
Note
see different options for zkey files to use specific circuits https://maci.pse.dev/docs/trusted-setup, https://maci.pse.dev/docs/testing/#pre-compiled-artifacts-for-testing
Defined in
commands/checkVerifyingKeys.ts:28