@maci-protocol/website 0.0.0-ci.1e276ed
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.js +157 -0
- package/CHANGELOG.md +566 -0
- package/LICENSE +22 -0
- package/README.md +58 -0
- package/babel.config.js +3 -0
- package/blog/2021-10-12-maci-v1.md +100 -0
- package/blog/2022-09-22-maci-v1-technical-introduction.md +180 -0
- package/blog/2023-01-18-maci-v1.1.1.md +121 -0
- package/blog/2024-01-18-roadmap.md +106 -0
- package/blog/2024-02-28-maci-v1.2.0.md +121 -0
- package/blog/2024-04-10-roadmap-q2.md +96 -0
- package/blog/2024-05-08-ethdam.md +169 -0
- package/blog/2024-05-22-the-origins-of-maci.md +38 -0
- package/blog/2024-05-28-upcoming-grants.md +85 -0
- package/blog/2024-06-17-understanding-maci.md +63 -0
- package/blog/2024-06-21-deciphering-maci.md +48 -0
- package/blog/2024-06-28-revolusioning-public-goods-funding.md +32 -0
- package/blog/2024-07-23-q2-review.md +72 -0
- package/blog/2024-07-30-roadmap-q3.md +61 -0
- package/blog/2024-08-10-maci-v2.md +102 -0
- package/blog/2024-08-29-anonymous-poll-joining.md +47 -0
- package/blog/2024-10-29-q3-review.md +63 -0
- package/blog/2024-11-20-maci-platform.md +93 -0
- package/blog/2024-12-01-maci-getting-started.md +294 -0
- package/blog/2025-03-21-roadmap-2025.md +112 -0
- package/blog/assets/MACI_Bob_SignUp_1.png +0 -0
- package/blog/assets/MACI_Bob_SignUp_2.png +0 -0
- package/blog/assets/MACI_Complex_Message.png +0 -0
- package/blog/assets/MACI_Contracts.png +0 -0
- package/blog/assets/MACI_Sign_Up.png +0 -0
- package/blog/assets/MACI_Simple_Message.png +0 -0
- package/blog/assets/MACI_Verifier_1.png +0 -0
- package/blog/authors.yml +5 -0
- package/docusaurus.config.ts +213 -0
- package/package.json +65 -0
- package/src/components/ActionCard/index.tsx +30 -0
- package/src/components/ActionCard/styles.module.css +96 -0
- package/src/components/HomepageFeatures/index.tsx +91 -0
- package/src/components/HomepageFeatures/styles.module.css +17 -0
- package/src/components/ProjectCard/index.tsx +74 -0
- package/src/components/ProjectCard/styles.module.css +77 -0
- package/src/components/ProjectList/index.tsx +218 -0
- package/src/components/ProjectList/styles.module.css +180 -0
- package/src/content/projects.json +294 -0
- package/src/css/card.module.css +130 -0
- package/src/css/custom.css +91 -0
- package/src/icons/IconDiscord.tsx +16 -0
- package/src/icons/IconGithub.tsx +16 -0
- package/src/icons/IconWebsite.tsx +16 -0
- package/src/pages/blogs.tsx +58 -0
- package/src/pages/index.module.css +152 -0
- package/src/pages/index.tsx +66 -0
- package/src/pages/projects.tsx +44 -0
- package/src/pages/roadmap.md +150 -0
- package/src/pages/typedoc.tsx +11 -0
- package/src/plugins/blog-plugin/index.ts +86 -0
- package/src/react-app-env.d.ts +1 -0
- package/src/scripts/setupSolidityDocs.ts +67 -0
- package/src/scripts/setupTypedoc.ts +112 -0
- package/src/scripts/utils.ts +115 -0
- package/src/utils/getProjectsByFilter.ts +40 -0
- package/static/.nojekyll +0 -0
- package/static/audit_reports/20210922_Hashcloak_audit_report.pdf +0 -0
- package/static/audit_reports/202220930_Hashcloak_audit_report.pdf +0 -0
- package/static/audit_reports/20240223_PSE_Audit_audit_report.pdf +0 -0
- package/static/audit_reports/20240731_PSE_Audit_audit_report.pdf +0 -0
- package/static/fonts/DM_Sans.woff2 +0 -0
- package/static/fonts/Share_Tech_Mono.woff2 +0 -0
- package/static/img/box.png +0 -0
- package/static/img/box_dark.png +0 -0
- package/static/img/chain.png +0 -0
- package/static/img/chain_dark.png +0 -0
- package/static/img/chart.png +0 -0
- package/static/img/chart_dark.png +0 -0
- package/static/img/circuits/MACI-Circuits.excalidraw +39652 -0
- package/static/img/circuits/calculateTotal.svg +21 -0
- package/static/img/circuits/ecdh.svg +21 -0
- package/static/img/circuits/messageToCommand.svg +21 -0
- package/static/img/circuits/messageValidator.svg +21 -0
- package/static/img/circuits/poseidonHasher13.svg +21 -0
- package/static/img/circuits/privToPubkey.svg +21 -0
- package/static/img/circuits/processMessages.svg +21 -0
- package/static/img/circuits/processMessagesInputHasher.svg +21 -0
- package/static/img/circuits/processMessages_2_0.svg +21 -0
- package/static/img/circuits/processOne.svg +21 -0
- package/static/img/circuits/processTopup.svg +21 -0
- package/static/img/circuits/processingAfterPollEnds.svg +21 -0
- package/static/img/circuits/quinBatchLeavesExists.svg +21 -0
- package/static/img/circuits/quinCheckRoot.svg +21 -0
- package/static/img/circuits/quinGeneratePathIndices.svg +21 -0
- package/static/img/circuits/quinSelector.svg +21 -0
- package/static/img/circuits/resultsCommitmentVerifier.svg +21 -0
- package/static/img/circuits/splicer.svg +21 -0
- package/static/img/circuits/tallyInputHasher.svg +21 -0
- package/static/img/circuits/tallyVotes.svg +21 -0
- package/static/img/circuits/unpackElement.svg +21 -0
- package/static/img/circuits/verifySignature.svg +21 -0
- package/static/img/completingAPoll.svg +4 -0
- package/static/img/contracts.svg +16 -0
- package/static/img/coordinatorComponents.svg +21 -0
- package/static/img/favicon.ico +0 -0
- package/static/img/generateProofs.svg +4 -0
- package/static/img/hero.svg +9 -0
- package/static/img/maci-card.png +0 -0
- package/static/img/maci-rpgf-design.jpg +0 -0
- package/static/img/messageProcessingLocal.svg +21 -0
- package/static/img/offlineProcessing.svg +21 -0
- package/static/img/pse-logo-round.png +0 -0
- package/static/img/relayer-diagram.png +0 -0
- package/static/img/tallyCommitments.svg +4 -0
- package/static/img/voteTallyingLocal.svg +21 -0
- package/tsconfig.json +34 -0
- package/versioned_docs/version-v0.x/circuits.md +22 -0
- package/versioned_docs/version-v0.x/contract.md +186 -0
- package/versioned_docs/version-v0.x/faq.md +67 -0
- package/versioned_docs/version-v0.x/introduction.md +119 -0
- package/versioned_docs/version-v0.x/quadratic-vote-tallying-circuit.md +138 -0
- package/versioned_docs/version-v0.x/state-root-transition-circuit.md +230 -0
- package/versioned_docs/version-v1.2/audit.md +160 -0
- package/versioned_docs/version-v1.2/ci-pipeline.md +38 -0
- package/versioned_docs/version-v1.2/circuits.md +508 -0
- package/versioned_docs/version-v1.2/cli.md +689 -0
- package/versioned_docs/version-v1.2/contracts.md +445 -0
- package/versioned_docs/version-v1.2/contributing/code-of-conduct.md +91 -0
- package/versioned_docs/version-v1.2/contributing/contributing.md +129 -0
- package/versioned_docs/version-v1.2/coordinator-processing.md +46 -0
- package/versioned_docs/version-v1.2/deployment.md +122 -0
- package/versioned_docs/version-v1.2/installation.md +175 -0
- package/versioned_docs/version-v1.2/integrating.md +200 -0
- package/versioned_docs/version-v1.2/introduction.md +94 -0
- package/versioned_docs/version-v1.2/key-change.md +182 -0
- package/versioned_docs/version-v1.2/overview.md +47 -0
- package/versioned_docs/version-v1.2/poll-types.md +68 -0
- package/versioned_docs/version-v1.2/primitives.md +216 -0
- package/versioned_docs/version-v1.2/project-ideas.md +14 -0
- package/versioned_docs/version-v1.2/purpose.md +62 -0
- package/versioned_docs/version-v1.2/solidity-docs/MACI.md +345 -0
- package/versioned_docs/version-v1.2/solidity-docs/MessageProcessor.md +266 -0
- package/versioned_docs/version-v1.2/solidity-docs/MessageProcessorFactory.md +26 -0
- package/versioned_docs/version-v1.2/solidity-docs/Poll.md +381 -0
- package/versioned_docs/version-v1.2/solidity-docs/PollFactory.md +50 -0
- package/versioned_docs/version-v1.2/solidity-docs/SignUpToken.md +27 -0
- package/versioned_docs/version-v1.2/solidity-docs/Subsidy.md +218 -0
- package/versioned_docs/version-v1.2/solidity-docs/SubsidyFactory.md +27 -0
- package/versioned_docs/version-v1.2/solidity-docs/Tally.md +311 -0
- package/versioned_docs/version-v1.2/solidity-docs/TallyFactory.md +27 -0
- package/versioned_docs/version-v1.2/solidity-docs/TallyNonQv.md +296 -0
- package/versioned_docs/version-v1.2/solidity-docs/TallyNonQvFactory.md +27 -0
- package/versioned_docs/version-v1.2/solidity-docs/TopupCredit.md +61 -0
- package/versioned_docs/version-v1.2/solidity-docs/VkRegistry.md +457 -0
- package/versioned_docs/version-v1.2/solidity-docs/benchmarks/HasherBenchmarks.md +44 -0
- package/versioned_docs/version-v1.2/solidity-docs/crypto/Hasher.md +125 -0
- package/versioned_docs/version-v1.2/solidity-docs/crypto/IVerifier.md +11 -0
- package/versioned_docs/version-v1.2/solidity-docs/crypto/MockVerifier.md +17 -0
- package/versioned_docs/version-v1.2/solidity-docs/crypto/Pairing.md +85 -0
- package/versioned_docs/version-v1.2/solidity-docs/crypto/PoseidonT3.md +9 -0
- package/versioned_docs/version-v1.2/solidity-docs/crypto/PoseidonT4.md +9 -0
- package/versioned_docs/version-v1.2/solidity-docs/crypto/PoseidonT5.md +9 -0
- package/versioned_docs/version-v1.2/solidity-docs/crypto/PoseidonT6.md +9 -0
- package/versioned_docs/version-v1.2/solidity-docs/crypto/SnarkCommon.md +16 -0
- package/versioned_docs/version-v1.2/solidity-docs/crypto/SnarkConstants.md +40 -0
- package/versioned_docs/version-v1.2/solidity-docs/crypto/Verifier.md +61 -0
- package/versioned_docs/version-v1.2/solidity-docs/gatekeepers/EASGatekeeper.md +121 -0
- package/versioned_docs/version-v1.2/solidity-docs/gatekeepers/FreeForAllSignUpGatekeeper.md +40 -0
- package/versioned_docs/version-v1.2/solidity-docs/gatekeepers/SignUpGatekeeper.md +26 -0
- package/versioned_docs/version-v1.2/solidity-docs/gatekeepers/SignUpTokenGatekeeper.md +93 -0
- package/versioned_docs/version-v1.2/solidity-docs/gatekeepers/hatsGatekeepers/HatsGatekeeperBase.md +79 -0
- package/versioned_docs/version-v1.2/solidity-docs/gatekeepers/hatsGatekeepers/HatsGatekeeperMultiple.md +48 -0
- package/versioned_docs/version-v1.2/solidity-docs/gatekeepers/hatsGatekeepers/HatsGatekeeperSingle.md +42 -0
- package/versioned_docs/version-v1.2/solidity-docs/index.md +4 -0
- package/versioned_docs/version-v1.2/solidity-docs/initialVoiceCreditProxy/ConstantInitialVoiceCreditProxy.md +40 -0
- package/versioned_docs/version-v1.2/solidity-docs/initialVoiceCreditProxy/InitialVoiceCreditProxy.md +26 -0
- package/versioned_docs/version-v1.2/solidity-docs/interfaces/IEAS.md +40 -0
- package/versioned_docs/version-v1.2/solidity-docs/interfaces/IHats.md +103 -0
- package/versioned_docs/version-v1.2/solidity-docs/interfaces/IMPFactory.md +26 -0
- package/versioned_docs/version-v1.2/solidity-docs/interfaces/IMessageProcessor.md +31 -0
- package/versioned_docs/version-v1.2/solidity-docs/interfaces/IPoll.md +217 -0
- package/versioned_docs/version-v1.2/solidity-docs/interfaces/IPollFactory.md +29 -0
- package/versioned_docs/version-v1.2/solidity-docs/interfaces/ITallyFactory.md +28 -0
- package/versioned_docs/version-v1.2/solidity-docs/interfaces/ITallySubsidyFactory.md +27 -0
- package/versioned_docs/version-v1.2/solidity-docs/interfaces/IVerifier.md +25 -0
- package/versioned_docs/version-v1.2/solidity-docs/interfaces/IVkRegistry.md +70 -0
- package/versioned_docs/version-v1.2/solidity-docs/mocks/MockHatsProtocol.md +133 -0
- package/versioned_docs/version-v1.2/solidity-docs/trees/AccQueue.md +464 -0
- package/versioned_docs/version-v1.2/solidity-docs/trees/AccQueueBinary.md +60 -0
- package/versioned_docs/version-v1.2/solidity-docs/trees/AccQueueBinary0.md +40 -0
- package/versioned_docs/version-v1.2/solidity-docs/trees/AccQueueBinaryMaci.md +34 -0
- package/versioned_docs/version-v1.2/solidity-docs/trees/AccQueueQuinary.md +75 -0
- package/versioned_docs/version-v1.2/solidity-docs/trees/AccQueueQuinary0.md +40 -0
- package/versioned_docs/version-v1.2/solidity-docs/trees/AccQueueQuinaryBlankSl.md +40 -0
- package/versioned_docs/version-v1.2/solidity-docs/trees/AccQueueQuinaryMaci.md +40 -0
- package/versioned_docs/version-v1.2/solidity-docs/trees/EmptyBallotRoots.md +13 -0
- package/versioned_docs/version-v1.2/solidity-docs/utilities/CommonUtilities.md +25 -0
- package/versioned_docs/version-v1.2/solidity-docs/utilities/DomainObjs.md +40 -0
- package/versioned_docs/version-v1.2/solidity-docs/utilities/Params.md +36 -0
- package/versioned_docs/version-v1.2/solidity-docs/utilities/Utilities.md +79 -0
- package/versioned_docs/version-v1.2/spec.md +944 -0
- package/versioned_docs/version-v1.2/testing-in-detail.md +209 -0
- package/versioned_docs/version-v1.2/testing.md +472 -0
- package/versioned_docs/version-v1.2/topup.md +43 -0
- package/versioned_docs/version-v1.2/troubleshooting.md +51 -0
- package/versioned_docs/version-v1.2/trusted-setup.md +76 -0
- package/versioned_docs/version-v1.2/typedoc/cli/.nojekyll +1 -0
- package/versioned_docs/version-v1.2/typedoc/cli/index.md +15 -0
- package/versioned_docs/version-v1.2/typedoc/cli/interfaces/AirdropArgs.md +89 -0
- package/versioned_docs/version-v1.2/typedoc/cli/interfaces/DeployArgs.md +154 -0
- package/versioned_docs/version-v1.2/typedoc/cli/interfaces/DeployPollArgs.md +154 -0
- package/versioned_docs/version-v1.2/typedoc/cli/interfaces/DeployedContracts.md +130 -0
- package/versioned_docs/version-v1.2/typedoc/cli/interfaces/GenLocalStateArgs.md +168 -0
- package/versioned_docs/version-v1.2/typedoc/cli/interfaces/GenProofsArgs.md +388 -0
- package/versioned_docs/version-v1.2/typedoc/cli/interfaces/IGenKeypairArgs.md +37 -0
- package/versioned_docs/version-v1.2/typedoc/cli/interfaces/IRegisteredUserArgs.md +63 -0
- package/versioned_docs/version-v1.2/typedoc/cli/interfaces/MergeMessagesArgs.md +76 -0
- package/versioned_docs/version-v1.2/typedoc/cli/interfaces/MergeSignupsArgs.md +76 -0
- package/versioned_docs/version-v1.2/typedoc/cli/interfaces/PollContracts.md +53 -0
- package/versioned_docs/version-v1.2/typedoc/cli/interfaces/ProveOnChainArgs.md +128 -0
- package/versioned_docs/version-v1.2/typedoc/cli/interfaces/PublishArgs.md +154 -0
- package/versioned_docs/version-v1.2/typedoc/cli/interfaces/SignupArgs.md +89 -0
- package/versioned_docs/version-v1.2/typedoc/cli/interfaces/SubsidyData.md +73 -0
- package/versioned_docs/version-v1.2/typedoc/cli/interfaces/TallyData.md +166 -0
- package/versioned_docs/version-v1.2/typedoc/cli/interfaces/TopupArgs.md +89 -0
- package/versioned_docs/version-v1.2/typedoc/cli/interfaces/VerifyArgs.md +128 -0
- package/versioned_docs/version-v1.2/typedoc/cli/modules.md +556 -0
- package/versioned_docs/version-v1.2/typedoc/core/.nojekyll +1 -0
- package/versioned_docs/version-v1.2/typedoc/core/classes/MaciState.md +295 -0
- package/versioned_docs/version-v1.2/typedoc/core/classes/Poll.md +1098 -0
- package/versioned_docs/version-v1.2/typedoc/core/index.md +110 -0
- package/versioned_docs/version-v1.2/typedoc/core/interfaces/BatchSizes.md +50 -0
- package/versioned_docs/version-v1.2/typedoc/core/interfaces/IJsonMaciState.md +77 -0
- package/versioned_docs/version-v1.2/typedoc/core/interfaces/IProcessMessagesCircuitInputs.md +242 -0
- package/versioned_docs/version-v1.2/typedoc/core/interfaces/ISubsidyCircuitInputs.md +198 -0
- package/versioned_docs/version-v1.2/typedoc/core/interfaces/ITallyCircuitInputs.md +231 -0
- package/versioned_docs/version-v1.2/typedoc/core/interfaces/MaxValues.md +37 -0
- package/versioned_docs/version-v1.2/typedoc/core/interfaces/TreeDepths.md +63 -0
- package/versioned_docs/version-v1.2/typedoc/core/modules.md +289 -0
- package/versioned_docs/version-v1.2/typedoc/crypto/.nojekyll +1 -0
- package/versioned_docs/version-v1.2/typedoc/crypto/classes/AccQueue.md +770 -0
- package/versioned_docs/version-v1.2/typedoc/crypto/classes/G1Point.md +115 -0
- package/versioned_docs/version-v1.2/typedoc/crypto/classes/G2Point.md +140 -0
- package/versioned_docs/version-v1.2/typedoc/crypto/classes/IncrementalQuinTree.md +470 -0
- package/versioned_docs/version-v1.2/typedoc/crypto/index.md +44 -0
- package/versioned_docs/version-v1.2/typedoc/crypto/interfaces/Keypair.md +33 -0
- package/versioned_docs/version-v1.2/typedoc/crypto/interfaces/PoseidonFuncs.md +115 -0
- package/versioned_docs/version-v1.2/typedoc/crypto/interfaces/Queue.md +33 -0
- package/versioned_docs/version-v1.2/typedoc/crypto/interfaces/Signature.md +37 -0
- package/versioned_docs/version-v1.2/typedoc/crypto/modules.md +913 -0
- package/versioned_docs/version-v1.2/typedoc/domainobjs/.nojekyll +1 -0
- package/versioned_docs/version-v1.2/typedoc/domainobjs/classes/Ballot.md +274 -0
- package/versioned_docs/version-v1.2/typedoc/domainobjs/classes/Keypair.md +181 -0
- package/versioned_docs/version-v1.2/typedoc/domainobjs/classes/Message.md +244 -0
- package/versioned_docs/version-v1.2/typedoc/domainobjs/classes/PCommand.md +409 -0
- package/versioned_docs/version-v1.2/typedoc/domainobjs/classes/PrivKey.md +206 -0
- package/versioned_docs/version-v1.2/typedoc/domainobjs/classes/PubKey.md +289 -0
- package/versioned_docs/version-v1.2/typedoc/domainobjs/classes/StateLeaf.md +340 -0
- package/versioned_docs/version-v1.2/typedoc/domainobjs/classes/TCommand.md +200 -0
- package/versioned_docs/version-v1.2/typedoc/domainobjs/classes/VerifyingKey.md +240 -0
- package/versioned_docs/version-v1.2/typedoc/domainobjs/index.md +81 -0
- package/versioned_docs/version-v1.2/typedoc/domainobjs/interfaces/ICommand.md +104 -0
- package/versioned_docs/version-v1.2/typedoc/domainobjs/interfaces/IG1ContractParams.md +31 -0
- package/versioned_docs/version-v1.2/typedoc/domainobjs/interfaces/IG2ContractParams.md +31 -0
- package/versioned_docs/version-v1.2/typedoc/domainobjs/interfaces/IJsonBallot.md +42 -0
- package/versioned_docs/version-v1.2/typedoc/domainobjs/interfaces/IJsonCommand.md +32 -0
- package/versioned_docs/version-v1.2/typedoc/domainobjs/interfaces/IJsonKeyPair.md +31 -0
- package/versioned_docs/version-v1.2/typedoc/domainobjs/interfaces/IJsonPCommand.md +111 -0
- package/versioned_docs/version-v1.2/typedoc/domainobjs/interfaces/IJsonStateLeaf.md +42 -0
- package/versioned_docs/version-v1.2/typedoc/domainobjs/interfaces/IJsonTCommand.md +67 -0
- package/versioned_docs/version-v1.2/typedoc/domainobjs/interfaces/IMessageContractParams.md +31 -0
- package/versioned_docs/version-v1.2/typedoc/domainobjs/interfaces/IStateLeaf.md +39 -0
- package/versioned_docs/version-v1.2/typedoc/domainobjs/interfaces/IStateLeafContractParams.md +42 -0
- package/versioned_docs/version-v1.2/typedoc/domainobjs/interfaces/IVkContractParams.md +64 -0
- package/versioned_docs/version-v1.2/typedoc/domainobjs/interfaces/IVkObjectParams.md +108 -0
- package/versioned_docs/version-v1.2/typedoc/domainobjs/interfaces/Proof.md +46 -0
- package/versioned_docs/version-v1.2/typedoc/domainobjs/interfaces/VoteOptionTreeLeaf.md +24 -0
- package/versioned_docs/version-v1.2/typedoc/domainobjs/modules.md +110 -0
- package/versioned_docs/version-v1.2/typedoc/index.md +4 -0
- package/versioned_docs/version-v1.2/versioning.md +94 -0
- package/versioned_docs/version-v1.2/workflow.md +142 -0
- package/versioned_docs/version-v2.x/case-studies.md +35 -0
- package/versioned_docs/version-v2.x/contributing/_category_.json +4 -0
- package/versioned_docs/version-v2.x/contributing/code-of-conduct.md +92 -0
- package/versioned_docs/version-v2.x/contributing/contributing.md +149 -0
- package/versioned_docs/version-v2.x/contributing/project-ideas.md +78 -0
- package/versioned_docs/version-v2.x/core-concepts/_category_.json +4 -0
- package/versioned_docs/version-v2.x/core-concepts/ballot.md +19 -0
- package/versioned_docs/version-v2.x/core-concepts/coordinator-processing.md +46 -0
- package/versioned_docs/version-v2.x/core-concepts/hashing-and-encryption.md +45 -0
- package/versioned_docs/version-v2.x/core-concepts/key-change.md +179 -0
- package/versioned_docs/version-v2.x/core-concepts/maci-keys.md +84 -0
- package/versioned_docs/version-v2.x/core-concepts/maci-messages.md +44 -0
- package/versioned_docs/version-v2.x/core-concepts/merkle-trees.md +23 -0
- package/versioned_docs/version-v2.x/core-concepts/poll-types.md +106 -0
- package/versioned_docs/version-v2.x/core-concepts/spec.md +883 -0
- package/versioned_docs/version-v2.x/core-concepts/state-leaf.md +42 -0
- package/versioned_docs/version-v2.x/core-concepts/workflow.md +142 -0
- package/versioned_docs/version-v2.x/getting-started.md +313 -0
- package/versioned_docs/version-v2.x/guides/_category_.json +4 -0
- package/versioned_docs/version-v2.x/guides/compile-circuits.md +163 -0
- package/versioned_docs/version-v2.x/guides/frontend.md +99 -0
- package/versioned_docs/version-v2.x/guides/integrating.md +73 -0
- package/versioned_docs/version-v2.x/guides/maciWrapper.md +173 -0
- package/versioned_docs/version-v2.x/guides/subgraph.md +79 -0
- package/versioned_docs/version-v2.x/guides/testing/_category_.json +4 -0
- package/versioned_docs/version-v2.x/guides/testing/testing-in-detail.md +203 -0
- package/versioned_docs/version-v2.x/guides/testing/testing.md +163 -0
- package/versioned_docs/version-v2.x/guides/troubleshooting.md +161 -0
- package/versioned_docs/version-v2.x/introduction.md +146 -0
- package/versioned_docs/version-v2.x/processes/_category_.json +4 -0
- package/versioned_docs/version-v2.x/processes/ci-pipeline.md +38 -0
- package/versioned_docs/version-v2.x/processes/versioning.md +94 -0
- package/versioned_docs/version-v2.x/resources.md +33 -0
- package/versioned_docs/version-v2.x/security/_category_.json +4 -0
- package/versioned_docs/version-v2.x/security/audit.md +167 -0
- package/versioned_docs/version-v2.x/security/trusted-setup.md +166 -0
- package/versioned_docs/version-v2.x/supported-networks/_category_.json +4 -0
- package/versioned_docs/version-v2.x/supported-networks/deployed-contracts.md +1108 -0
- package/versioned_docs/version-v2.x/supported-networks/supported-networks.md +47 -0
- package/versioned_docs/version-v2.x/technical-references/_category_.json +4 -0
- package/versioned_docs/version-v2.x/technical-references/smart-contracts/AccQueue.md +21 -0
- package/versioned_docs/version-v2.x/technical-references/smart-contracts/Gatekeepers.md +40 -0
- package/versioned_docs/version-v2.x/technical-references/smart-contracts/MACI.md +152 -0
- package/versioned_docs/version-v2.x/technical-references/smart-contracts/MessageProcessor.md +13 -0
- package/versioned_docs/version-v2.x/technical-references/smart-contracts/Params.md +32 -0
- package/versioned_docs/version-v2.x/technical-references/smart-contracts/Poll.md +104 -0
- package/versioned_docs/version-v2.x/technical-references/smart-contracts/PollFactory.md +43 -0
- package/versioned_docs/version-v2.x/technical-references/smart-contracts/Tally.md +45 -0
- package/versioned_docs/version-v2.x/technical-references/smart-contracts/VkRegistry.md +57 -0
- package/versioned_docs/version-v2.x/technical-references/smart-contracts/VoiceCreditProxy.md +18 -0
- package/versioned_docs/version-v2.x/technical-references/smart-contracts/_category_.json +8 -0
- package/versioned_docs/version-v2.x/technical-references/technical-references.md +47 -0
- package/versioned_docs/version-v2.x/technical-references/typescript-code/_category_.json +4 -0
- package/versioned_docs/version-v2.x/technical-references/typescript-code/cli.md +699 -0
- package/versioned_docs/version-v2.x/technical-references/zk-snark-circuits/_category_.json +4 -0
- package/versioned_docs/version-v2.x/technical-references/zk-snark-circuits/processMessages.md +107 -0
- package/versioned_docs/version-v2.x/technical-references/zk-snark-circuits/setup.md +101 -0
- package/versioned_docs/version-v2.x/technical-references/zk-snark-circuits/tallyVotes.md +79 -0
- package/versioned_docs/version-v2.x/technical-references/zk-snark-circuits/utilities.md +131 -0
- package/versioned_docs/version-v2.x/technical-references/zk-snark-circuits/zk-snark-circuits.md +37 -0
- package/versioned_docs/version-v2.x/use-cases/_category_.json +4 -0
- package/versioned_docs/version-v2.x/use-cases/governance.md +18 -0
- package/versioned_docs/version-v2.x/use-cases/polling.md +10 -0
- package/versioned_docs/version-v2.x/use-cases/public-goods.md +65 -0
- package/versioned_docs/version-v3.x/case-studies.md +35 -0
- package/versioned_docs/version-v3.x/contributing/_category_.json +4 -0
- package/versioned_docs/version-v3.x/contributing/code-of-conduct.md +92 -0
- package/versioned_docs/version-v3.x/contributing/contributing.md +149 -0
- package/versioned_docs/version-v3.x/contributing/project-ideas.md +78 -0
- package/versioned_docs/version-v3.x/core-concepts/_category_.json +4 -0
- package/versioned_docs/version-v3.x/core-concepts/ballot.md +19 -0
- package/versioned_docs/version-v3.x/core-concepts/coordinator-processing.md +46 -0
- package/versioned_docs/version-v3.x/core-concepts/coordinator-service.md +16 -0
- package/versioned_docs/version-v3.x/core-concepts/hashing-and-encryption.md +45 -0
- package/versioned_docs/version-v3.x/core-concepts/key-change.md +179 -0
- package/versioned_docs/version-v3.x/core-concepts/maci-keys.md +84 -0
- package/versioned_docs/version-v3.x/core-concepts/maci-messages.md +44 -0
- package/versioned_docs/version-v3.x/core-concepts/merkle-trees.md +16 -0
- package/versioned_docs/version-v3.x/core-concepts/offchain-voting.md +14 -0
- package/versioned_docs/version-v3.x/core-concepts/poll-types.md +58 -0
- package/versioned_docs/version-v3.x/core-concepts/polls.md +81 -0
- package/versioned_docs/version-v3.x/core-concepts/spec.md +883 -0
- package/versioned_docs/version-v3.x/core-concepts/state-leaf.md +42 -0
- package/versioned_docs/version-v3.x/core-concepts/workflow.md +149 -0
- package/versioned_docs/version-v3.x/guides/_category_.json +4 -0
- package/versioned_docs/version-v3.x/guides/compile-circuits.md +175 -0
- package/versioned_docs/version-v3.x/guides/integrating.md +137 -0
- package/versioned_docs/version-v3.x/guides/subgraph.md +79 -0
- package/versioned_docs/version-v3.x/guides/testing/_category_.json +4 -0
- package/versioned_docs/version-v3.x/guides/testing/testing-in-detail.md +191 -0
- package/versioned_docs/version-v3.x/guides/testing/testing-introduction.md +158 -0
- package/versioned_docs/version-v3.x/guides/troubleshooting.md +161 -0
- package/versioned_docs/version-v3.x/introduction.md +153 -0
- package/versioned_docs/version-v3.x/processes/_category_.json +4 -0
- package/versioned_docs/version-v3.x/processes/ci-pipeline.md +38 -0
- package/versioned_docs/version-v3.x/processes/versioning.md +94 -0
- package/versioned_docs/version-v3.x/quick-start.md +318 -0
- package/versioned_docs/version-v3.x/resources.md +33 -0
- package/versioned_docs/version-v3.x/security/_category_.json +4 -0
- package/versioned_docs/version-v3.x/security/audit.md +167 -0
- package/versioned_docs/version-v3.x/security/trusted-setup.md +172 -0
- package/versioned_docs/version-v3.x/supported-networks/_category_.json +4 -0
- package/versioned_docs/version-v3.x/supported-networks/deployed-contracts.md +112 -0
- package/versioned_docs/version-v3.x/supported-networks/supported-networks.md +53 -0
- package/versioned_docs/version-v3.x/technical-references/_category_.json +4 -0
- package/versioned_docs/version-v3.x/technical-references/coordinator-service/_category_.json +8 -0
- package/versioned_docs/version-v3.x/technical-references/coordinator-service/index.md +10 -0
- package/versioned_docs/version-v3.x/technical-references/coordinator-service/installation.md +43 -0
- package/versioned_docs/version-v3.x/technical-references/offchain-relayer/_category_.json +8 -0
- package/versioned_docs/version-v3.x/technical-references/offchain-relayer/index.md +51 -0
- package/versioned_docs/version-v3.x/technical-references/offchain-relayer/installation.md +109 -0
- package/versioned_docs/version-v3.x/technical-references/smart-contracts/MACI.md +160 -0
- package/versioned_docs/version-v3.x/technical-references/smart-contracts/MessageProcessor.md +13 -0
- package/versioned_docs/version-v3.x/technical-references/smart-contracts/Params.md +33 -0
- package/versioned_docs/version-v3.x/technical-references/smart-contracts/Policies.md +39 -0
- package/versioned_docs/version-v3.x/technical-references/smart-contracts/Poll.md +170 -0
- package/versioned_docs/version-v3.x/technical-references/smart-contracts/PollFactory.md +33 -0
- package/versioned_docs/version-v3.x/technical-references/smart-contracts/Tally.md +43 -0
- package/versioned_docs/version-v3.x/technical-references/smart-contracts/VkRegistry.md +62 -0
- package/versioned_docs/version-v3.x/technical-references/smart-contracts/VoiceCreditProxy.md +18 -0
- package/versioned_docs/version-v3.x/technical-references/smart-contracts/_category_.json +8 -0
- package/versioned_docs/version-v3.x/technical-references/technical-references.md +48 -0
- package/versioned_docs/version-v3.x/technical-references/zk-snark-circuits/_category_.json +4 -0
- package/versioned_docs/version-v3.x/technical-references/zk-snark-circuits/joinPoll.md +53 -0
- package/versioned_docs/version-v3.x/technical-references/zk-snark-circuits/processMessages.md +106 -0
- package/versioned_docs/version-v3.x/technical-references/zk-snark-circuits/setup.md +96 -0
- package/versioned_docs/version-v3.x/technical-references/zk-snark-circuits/tallyVotes.md +79 -0
- package/versioned_docs/version-v3.x/technical-references/zk-snark-circuits/utilities.md +131 -0
- package/versioned_docs/version-v3.x/technical-references/zk-snark-circuits/zk-snark-circuits.md +42 -0
- package/versioned_docs/version-v3.x/use-cases/_category_.json +4 -0
- package/versioned_docs/version-v3.x/use-cases/governance.md +18 -0
- package/versioned_docs/version-v3.x/use-cases/polling.md +10 -0
- package/versioned_docs/version-v3.x/use-cases/public-goods.md +65 -0
- package/versioned_sidebars/version-v0.x-sidebars.json +8 -0
- package/versioned_sidebars/version-v1.2-sidebars.json +8 -0
- package/versioned_sidebars/version-v2.x-sidebars.json +8 -0
- package/versioned_sidebars/version-v3.x-sidebars.json +8 -0
- package/versions.json +1 -0
|
@@ -0,0 +1,556 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Cli Module
|
|
3
|
+
sidebar_label: module
|
|
4
|
+
sidebar_position: 1
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Table of contents
|
|
8
|
+
|
|
9
|
+
### Interfaces
|
|
10
|
+
|
|
11
|
+
- [AirdropArgs](interfaces/AirdropArgs.md)
|
|
12
|
+
- [DeployArgs](interfaces/DeployArgs.md)
|
|
13
|
+
- [DeployPollArgs](interfaces/DeployPollArgs.md)
|
|
14
|
+
- [DeployedContracts](interfaces/DeployedContracts.md)
|
|
15
|
+
- [GenLocalStateArgs](interfaces/GenLocalStateArgs.md)
|
|
16
|
+
- [GenProofsArgs](interfaces/GenProofsArgs.md)
|
|
17
|
+
- [IGenKeypairArgs](interfaces/IGenKeypairArgs.md)
|
|
18
|
+
- [IRegisteredUserArgs](interfaces/IRegisteredUserArgs.md)
|
|
19
|
+
- [MergeMessagesArgs](interfaces/MergeMessagesArgs.md)
|
|
20
|
+
- [MergeSignupsArgs](interfaces/MergeSignupsArgs.md)
|
|
21
|
+
- [PollContracts](interfaces/PollContracts.md)
|
|
22
|
+
- [ProveOnChainArgs](interfaces/ProveOnChainArgs.md)
|
|
23
|
+
- [PublishArgs](interfaces/PublishArgs.md)
|
|
24
|
+
- [SignupArgs](interfaces/SignupArgs.md)
|
|
25
|
+
- [SubsidyData](interfaces/SubsidyData.md)
|
|
26
|
+
- [TallyData](interfaces/TallyData.md)
|
|
27
|
+
- [TopupArgs](interfaces/TopupArgs.md)
|
|
28
|
+
- [VerifyArgs](interfaces/VerifyArgs.md)
|
|
29
|
+
|
|
30
|
+
### Functions
|
|
31
|
+
|
|
32
|
+
- [airdrop](modules.md#airdrop)
|
|
33
|
+
- [checkVerifyingKeys](modules.md#checkverifyingkeys)
|
|
34
|
+
- [deploy](modules.md#deploy)
|
|
35
|
+
- [deployPoll](modules.md#deploypoll)
|
|
36
|
+
- [deployVkRegistryContract](modules.md#deployvkregistrycontract)
|
|
37
|
+
- [fundWallet](modules.md#fundwallet)
|
|
38
|
+
- [genKeyPair](modules.md#genkeypair)
|
|
39
|
+
- [genLocalState](modules.md#genlocalstate)
|
|
40
|
+
- [genMaciPubKey](modules.md#genmacipubkey)
|
|
41
|
+
- [genProofs](modules.md#genproofs)
|
|
42
|
+
- [getPoll](modules.md#getpoll)
|
|
43
|
+
- [isRegisteredUser](modules.md#isregistereduser)
|
|
44
|
+
- [mergeMessages](modules.md#mergemessages)
|
|
45
|
+
- [mergeSignups](modules.md#mergesignups)
|
|
46
|
+
- [proveOnChain](modules.md#proveonchain)
|
|
47
|
+
- [publish](modules.md#publish)
|
|
48
|
+
- [setVerifyingKeys](modules.md#setverifyingkeys)
|
|
49
|
+
- [signup](modules.md#signup)
|
|
50
|
+
- [timeTravel](modules.md#timetravel)
|
|
51
|
+
- [topup](modules.md#topup)
|
|
52
|
+
- [verify](modules.md#verify)
|
|
53
|
+
|
|
54
|
+
## Functions
|
|
55
|
+
|
|
56
|
+
### airdrop
|
|
57
|
+
|
|
58
|
+
▸ **airdrop**(`AirdropArgs`): `Promise`\<`void`\>
|
|
59
|
+
|
|
60
|
+
Utility that can be used to get
|
|
61
|
+
topup credits airdropped
|
|
62
|
+
to the coordinator
|
|
63
|
+
|
|
64
|
+
#### Parameters
|
|
65
|
+
|
|
66
|
+
| Name | Type | Description |
|
|
67
|
+
| :------------ | :----------------------------------------- | :------------------------------------ |
|
|
68
|
+
| `AirdropArgs` | [`AirdropArgs`](interfaces/AirdropArgs.md) | The arguments for the airdrop command |
|
|
69
|
+
|
|
70
|
+
#### Returns
|
|
71
|
+
|
|
72
|
+
`Promise`\<`void`\>
|
|
73
|
+
|
|
74
|
+
#### Defined in
|
|
75
|
+
|
|
76
|
+
[commands/airdrop.ts:11](https://github.com/privacy-scaling-explorations/maci/blob/6a905de08/cli/ts/commands/airdrop.ts#L11)
|
|
77
|
+
|
|
78
|
+
---
|
|
79
|
+
|
|
80
|
+
### checkVerifyingKeys
|
|
81
|
+
|
|
82
|
+
▸ **checkVerifyingKeys**(`CheckVerifyingKeysArgs`): `Promise`\<`boolean`\>
|
|
83
|
+
|
|
84
|
+
Command to confirm that the verifying keys in the contract match the
|
|
85
|
+
local ones
|
|
86
|
+
|
|
87
|
+
#### Parameters
|
|
88
|
+
|
|
89
|
+
| Name | Type | Description |
|
|
90
|
+
| :----------------------- | :----------------------- | :----------------------------------------------- |
|
|
91
|
+
| `CheckVerifyingKeysArgs` | `CheckVerifyingKeysArgs` | The arguments for the checkVerifyingKeys command |
|
|
92
|
+
|
|
93
|
+
#### Returns
|
|
94
|
+
|
|
95
|
+
`Promise`\<`boolean`\>
|
|
96
|
+
|
|
97
|
+
Whether the verifying keys match or not
|
|
98
|
+
|
|
99
|
+
**`Note`**
|
|
100
|
+
|
|
101
|
+
see different options for zkey files to use specific circuits https://maci.pse.dev/docs/security/trusted-setup, https://maci.pse.dev/docs/testing/#pre-compiled-artifacts-for-testing
|
|
102
|
+
|
|
103
|
+
#### Defined in
|
|
104
|
+
|
|
105
|
+
[commands/checkVerifyingKeys.ts:28](https://github.com/privacy-scaling-explorations/maci/blob/6a905de08/cli/ts/commands/checkVerifyingKeys.ts#L28)
|
|
106
|
+
|
|
107
|
+
---
|
|
108
|
+
|
|
109
|
+
### deploy
|
|
110
|
+
|
|
111
|
+
▸ **deploy**(`DeployArgs`): `Promise`\<[`DeployedContracts`](interfaces/DeployedContracts.md)\>
|
|
112
|
+
|
|
113
|
+
Deploy MACI and related contracts
|
|
114
|
+
|
|
115
|
+
#### Parameters
|
|
116
|
+
|
|
117
|
+
| Name | Type | Description |
|
|
118
|
+
| :----------- | :--------------------------------------- | :----------------------------------- |
|
|
119
|
+
| `DeployArgs` | [`DeployArgs`](interfaces/DeployArgs.md) | The arguments for the deploy command |
|
|
120
|
+
|
|
121
|
+
#### Returns
|
|
122
|
+
|
|
123
|
+
`Promise`\<[`DeployedContracts`](interfaces/DeployedContracts.md)\>
|
|
124
|
+
|
|
125
|
+
The addresses of the deployed contracts
|
|
126
|
+
|
|
127
|
+
#### Defined in
|
|
128
|
+
|
|
129
|
+
[commands/deploy.ts:26](https://github.com/privacy-scaling-explorations/maci/blob/6a905de08/cli/ts/commands/deploy.ts#L26)
|
|
130
|
+
|
|
131
|
+
---
|
|
132
|
+
|
|
133
|
+
### deployPoll
|
|
134
|
+
|
|
135
|
+
▸ **deployPoll**(`DeployPollArgs`): `Promise`\<[`PollContracts`](interfaces/PollContracts.md)\>
|
|
136
|
+
|
|
137
|
+
Deploy a new Poll for the set of MACI's contracts already deployed
|
|
138
|
+
|
|
139
|
+
#### Parameters
|
|
140
|
+
|
|
141
|
+
| Name | Type | Description |
|
|
142
|
+
| :--------------- | :----------------------------------------------- | :--------------------------------------- |
|
|
143
|
+
| `DeployPollArgs` | [`DeployPollArgs`](interfaces/DeployPollArgs.md) | The arguments for the deployPoll command |
|
|
144
|
+
|
|
145
|
+
#### Returns
|
|
146
|
+
|
|
147
|
+
`Promise`\<[`PollContracts`](interfaces/PollContracts.md)\>
|
|
148
|
+
|
|
149
|
+
The addresses of the deployed contracts
|
|
150
|
+
|
|
151
|
+
#### Defined in
|
|
152
|
+
|
|
153
|
+
[commands/deployPoll.ts:21](https://github.com/privacy-scaling-explorations/maci/blob/6a905de08/cli/ts/commands/deployPoll.ts#L21)
|
|
154
|
+
|
|
155
|
+
---
|
|
156
|
+
|
|
157
|
+
### deployVkRegistryContract
|
|
158
|
+
|
|
159
|
+
▸ **deployVkRegistryContract**(`quiet`): `Promise`\<`string`\>
|
|
160
|
+
|
|
161
|
+
Deploy the vkRegistry contract
|
|
162
|
+
|
|
163
|
+
#### Parameters
|
|
164
|
+
|
|
165
|
+
| Name | Type | Description |
|
|
166
|
+
| :------ | :--------------------- | :------------------------------------ |
|
|
167
|
+
| `quiet` | `DeployVkRegistryArgs` | whether to print the contract address |
|
|
168
|
+
|
|
169
|
+
#### Returns
|
|
170
|
+
|
|
171
|
+
`Promise`\<`string`\>
|
|
172
|
+
|
|
173
|
+
#### Defined in
|
|
174
|
+
|
|
175
|
+
[commands/deployVkRegistry.ts:20](https://github.com/privacy-scaling-explorations/maci/blob/6a905de08/cli/ts/commands/deployVkRegistry.ts#L20)
|
|
176
|
+
|
|
177
|
+
---
|
|
178
|
+
|
|
179
|
+
### fundWallet
|
|
180
|
+
|
|
181
|
+
▸ **fundWallet**(`«destructured»`): `Promise`\<`void`\>
|
|
182
|
+
|
|
183
|
+
Fund a new wallet with Ether
|
|
184
|
+
|
|
185
|
+
#### Parameters
|
|
186
|
+
|
|
187
|
+
| Name | Type |
|
|
188
|
+
| :--------------- | :--------------- |
|
|
189
|
+
| `«destructured»` | `FundWalletArgs` |
|
|
190
|
+
|
|
191
|
+
#### Returns
|
|
192
|
+
|
|
193
|
+
`Promise`\<`void`\>
|
|
194
|
+
|
|
195
|
+
#### Defined in
|
|
196
|
+
|
|
197
|
+
[commands/fundWallet.ts:9](https://github.com/privacy-scaling-explorations/maci/blob/6a905de08/cli/ts/commands/fundWallet.ts#L9)
|
|
198
|
+
|
|
199
|
+
---
|
|
200
|
+
|
|
201
|
+
### genKeyPair
|
|
202
|
+
|
|
203
|
+
▸ **genKeyPair**(`args`): `Object`
|
|
204
|
+
|
|
205
|
+
Generate a new Maci Key Pair
|
|
206
|
+
and print it to the screen
|
|
207
|
+
|
|
208
|
+
#### Parameters
|
|
209
|
+
|
|
210
|
+
| Name | Type | Description |
|
|
211
|
+
| :----- | :------------------------------------------------- | :------------------------ |
|
|
212
|
+
| `args` | [`IGenKeypairArgs`](interfaces/IGenKeypairArgs.md) | keypair generation params |
|
|
213
|
+
|
|
214
|
+
#### Returns
|
|
215
|
+
|
|
216
|
+
`Object`
|
|
217
|
+
|
|
218
|
+
- keypair
|
|
219
|
+
|
|
220
|
+
| Name | Type |
|
|
221
|
+
| :----------- | :------- |
|
|
222
|
+
| `privateKey` | `string` |
|
|
223
|
+
| `publicKey` | `string` |
|
|
224
|
+
|
|
225
|
+
#### Defined in
|
|
226
|
+
|
|
227
|
+
[commands/genKeyPair.ts:15](https://github.com/privacy-scaling-explorations/maci/blob/6a905de08/cli/ts/commands/genKeyPair.ts#L15)
|
|
228
|
+
|
|
229
|
+
---
|
|
230
|
+
|
|
231
|
+
### genLocalState
|
|
232
|
+
|
|
233
|
+
▸ **genLocalState**(`GenLocalStateArgs`): `Promise`\<`void`\>
|
|
234
|
+
|
|
235
|
+
Generate a local MACI state from the smart contracts events
|
|
236
|
+
|
|
237
|
+
#### Parameters
|
|
238
|
+
|
|
239
|
+
| Name | Type | Description |
|
|
240
|
+
| :------------------ | :----------------------------------------------------- | :------------------------------------------ |
|
|
241
|
+
| `GenLocalStateArgs` | [`GenLocalStateArgs`](interfaces/GenLocalStateArgs.md) | The arguments for the genLocalState command |
|
|
242
|
+
|
|
243
|
+
#### Returns
|
|
244
|
+
|
|
245
|
+
`Promise`\<`void`\>
|
|
246
|
+
|
|
247
|
+
#### Defined in
|
|
248
|
+
|
|
249
|
+
[commands/genLocalState.ts:24](https://github.com/privacy-scaling-explorations/maci/blob/6a905de08/cli/ts/commands/genLocalState.ts#L24)
|
|
250
|
+
|
|
251
|
+
---
|
|
252
|
+
|
|
253
|
+
### genMaciPubKey
|
|
254
|
+
|
|
255
|
+
▸ **genMaciPubKey**(`privkey`, `quiet?`): `string`
|
|
256
|
+
|
|
257
|
+
Generate a new Maci Public key from a private key
|
|
258
|
+
|
|
259
|
+
#### Parameters
|
|
260
|
+
|
|
261
|
+
| Name | Type | Default value | Description |
|
|
262
|
+
| :-------- | :-------- | :------------ | :------------------------ |
|
|
263
|
+
| `privkey` | `string` | `undefined` | - |
|
|
264
|
+
| `quiet` | `boolean` | `true` | whether to log the output |
|
|
265
|
+
|
|
266
|
+
#### Returns
|
|
267
|
+
|
|
268
|
+
`string`
|
|
269
|
+
|
|
270
|
+
the public key serialized
|
|
271
|
+
|
|
272
|
+
#### Defined in
|
|
273
|
+
|
|
274
|
+
[commands/genPubKey.ts:13](https://github.com/privacy-scaling-explorations/maci/blob/6a905de08/cli/ts/commands/genPubKey.ts#L13)
|
|
275
|
+
|
|
276
|
+
---
|
|
277
|
+
|
|
278
|
+
### genProofs
|
|
279
|
+
|
|
280
|
+
▸ **genProofs**(`GenProofsArgs`): `Promise`\<[`TallyData`](interfaces/TallyData.md)\>
|
|
281
|
+
|
|
282
|
+
Generate proofs for the message processing, tally and subsidy calculations
|
|
283
|
+
|
|
284
|
+
#### Parameters
|
|
285
|
+
|
|
286
|
+
| Name | Type | Description |
|
|
287
|
+
| :-------------- | :--------------------------------------------- | :-------------------------------------- |
|
|
288
|
+
| `GenProofsArgs` | [`GenProofsArgs`](interfaces/GenProofsArgs.md) | The arguments for the genProofs command |
|
|
289
|
+
|
|
290
|
+
#### Returns
|
|
291
|
+
|
|
292
|
+
`Promise`\<[`TallyData`](interfaces/TallyData.md)\>
|
|
293
|
+
|
|
294
|
+
The tally data
|
|
295
|
+
|
|
296
|
+
**`Note`**
|
|
297
|
+
|
|
298
|
+
see different options for zkey files to use specific circuits https://maci.pse.dev/docs/security/trusted-setup, https://maci.pse.dev/docs/testing/#pre-compiled-artifacts-for-testing
|
|
299
|
+
|
|
300
|
+
#### Defined in
|
|
301
|
+
|
|
302
|
+
[commands/genProofs.ts:42](https://github.com/privacy-scaling-explorations/maci/blob/6a905de08/cli/ts/commands/genProofs.ts#L42)
|
|
303
|
+
|
|
304
|
+
---
|
|
305
|
+
|
|
306
|
+
### getPoll
|
|
307
|
+
|
|
308
|
+
▸ **getPoll**(`args`): `Promise`\<`IGetPollData`\>
|
|
309
|
+
|
|
310
|
+
Get deployed poll from MACI contract
|
|
311
|
+
|
|
312
|
+
#### Parameters
|
|
313
|
+
|
|
314
|
+
| Name | Type | Description |
|
|
315
|
+
| :----- | :------------- | :------------------------------------- |
|
|
316
|
+
| `args` | `IGetPollArgs` | The arguments for the get poll command |
|
|
317
|
+
|
|
318
|
+
#### Returns
|
|
319
|
+
|
|
320
|
+
`Promise`\<`IGetPollData`\>
|
|
321
|
+
|
|
322
|
+
poll data
|
|
323
|
+
|
|
324
|
+
#### Defined in
|
|
325
|
+
|
|
326
|
+
[commands/poll.ts:14](https://github.com/privacy-scaling-explorations/maci/blob/6a905de08/cli/ts/commands/poll.ts#L14)
|
|
327
|
+
|
|
328
|
+
---
|
|
329
|
+
|
|
330
|
+
### isRegisteredUser
|
|
331
|
+
|
|
332
|
+
▸ **isRegisteredUser**(`IRegisteredArgs`): `Promise`\<\{ `isRegistered`: `boolean` ; `stateIndex?`: `string` }\>
|
|
333
|
+
|
|
334
|
+
Checks if user is registered with public key
|
|
335
|
+
|
|
336
|
+
#### Parameters
|
|
337
|
+
|
|
338
|
+
| Name | Type | Description |
|
|
339
|
+
| :---------------- | :--------------------------------------------------------- | :------------------------------------------- |
|
|
340
|
+
| `IRegisteredArgs` | [`IRegisteredUserArgs`](interfaces/IRegisteredUserArgs.md) | The arguments for the register check command |
|
|
341
|
+
|
|
342
|
+
#### Returns
|
|
343
|
+
|
|
344
|
+
`Promise`\<\{ `isRegistered`: `boolean` ; `stateIndex?`: `string` }\>
|
|
345
|
+
|
|
346
|
+
user registered or not and state index
|
|
347
|
+
|
|
348
|
+
#### Defined in
|
|
349
|
+
|
|
350
|
+
[commands/signup.ts:94](https://github.com/privacy-scaling-explorations/maci/blob/6a905de08/cli/ts/commands/signup.ts#L94)
|
|
351
|
+
|
|
352
|
+
---
|
|
353
|
+
|
|
354
|
+
### mergeMessages
|
|
355
|
+
|
|
356
|
+
▸ **mergeMessages**(`MergeMessagesArgs`): `Promise`\<`void`\>
|
|
357
|
+
|
|
358
|
+
Merge the message queue on chain
|
|
359
|
+
|
|
360
|
+
#### Parameters
|
|
361
|
+
|
|
362
|
+
| Name | Type | Description |
|
|
363
|
+
| :------------------ | :----------------------------------------------------- | :------------------------------------------ |
|
|
364
|
+
| `MergeMessagesArgs` | [`MergeMessagesArgs`](interfaces/MergeMessagesArgs.md) | The arguments for the mergeMessages command |
|
|
365
|
+
|
|
366
|
+
#### Returns
|
|
367
|
+
|
|
368
|
+
`Promise`\<`void`\>
|
|
369
|
+
|
|
370
|
+
#### Defined in
|
|
371
|
+
|
|
372
|
+
[commands/mergeMessages.ts:25](https://github.com/privacy-scaling-explorations/maci/blob/6a905de08/cli/ts/commands/mergeMessages.ts#L25)
|
|
373
|
+
|
|
374
|
+
---
|
|
375
|
+
|
|
376
|
+
### mergeSignups
|
|
377
|
+
|
|
378
|
+
▸ **mergeSignups**(`MergeSignupsArgs`): `Promise`\<`void`\>
|
|
379
|
+
|
|
380
|
+
Command to merge the signups of a MACI contract
|
|
381
|
+
|
|
382
|
+
#### Parameters
|
|
383
|
+
|
|
384
|
+
| Name | Type | Description |
|
|
385
|
+
| :----------------- | :--------------------------------------------------- | :----------------------------------------- |
|
|
386
|
+
| `MergeSignupsArgs` | [`MergeSignupsArgs`](interfaces/MergeSignupsArgs.md) | The arguments for the mergeSignups command |
|
|
387
|
+
|
|
388
|
+
#### Returns
|
|
389
|
+
|
|
390
|
+
`Promise`\<`void`\>
|
|
391
|
+
|
|
392
|
+
#### Defined in
|
|
393
|
+
|
|
394
|
+
[commands/mergeSignups.ts:25](https://github.com/privacy-scaling-explorations/maci/blob/6a905de08/cli/ts/commands/mergeSignups.ts#L25)
|
|
395
|
+
|
|
396
|
+
---
|
|
397
|
+
|
|
398
|
+
### proveOnChain
|
|
399
|
+
|
|
400
|
+
▸ **proveOnChain**(`ProveOnChainArgs`): `Promise`\<`void`\>
|
|
401
|
+
|
|
402
|
+
Command to prove the result of a poll on-chain
|
|
403
|
+
|
|
404
|
+
#### Parameters
|
|
405
|
+
|
|
406
|
+
| Name | Type | Description |
|
|
407
|
+
| :----------------- | :--------------------------------------------------- | :----------------------------------------- |
|
|
408
|
+
| `ProveOnChainArgs` | [`ProveOnChainArgs`](interfaces/ProveOnChainArgs.md) | The arguments for the proveOnChain command |
|
|
409
|
+
|
|
410
|
+
#### Returns
|
|
411
|
+
|
|
412
|
+
`Promise`\<`void`\>
|
|
413
|
+
|
|
414
|
+
#### Defined in
|
|
415
|
+
|
|
416
|
+
[commands/proveOnChain.ts:43](https://github.com/privacy-scaling-explorations/maci/blob/6a905de08/cli/ts/commands/proveOnChain.ts#L43)
|
|
417
|
+
|
|
418
|
+
---
|
|
419
|
+
|
|
420
|
+
### publish
|
|
421
|
+
|
|
422
|
+
▸ **publish**(`PublishArgs`): `Promise`\<`string`\>
|
|
423
|
+
|
|
424
|
+
Publish a new message to a MACI Poll contract
|
|
425
|
+
|
|
426
|
+
#### Parameters
|
|
427
|
+
|
|
428
|
+
| Name | Type | Description |
|
|
429
|
+
| :------------ | :----------------------------------------- | :------------------------------------ |
|
|
430
|
+
| `PublishArgs` | [`PublishArgs`](interfaces/PublishArgs.md) | The arguments for the publish command |
|
|
431
|
+
|
|
432
|
+
#### Returns
|
|
433
|
+
|
|
434
|
+
`Promise`\<`string`\>
|
|
435
|
+
|
|
436
|
+
The ephemeral private key used to encrypt the message
|
|
437
|
+
|
|
438
|
+
#### Defined in
|
|
439
|
+
|
|
440
|
+
[commands/publish.ts:17](https://github.com/privacy-scaling-explorations/maci/blob/6a905de08/cli/ts/commands/publish.ts#L17)
|
|
441
|
+
|
|
442
|
+
---
|
|
443
|
+
|
|
444
|
+
### setVerifyingKeys
|
|
445
|
+
|
|
446
|
+
▸ **setVerifyingKeys**(`SetVerifyingKeysArgs`): `Promise`\<`void`\>
|
|
447
|
+
|
|
448
|
+
Function that sets the verifying keys in the VkRegistry contract
|
|
449
|
+
|
|
450
|
+
#### Parameters
|
|
451
|
+
|
|
452
|
+
| Name | Type | Description |
|
|
453
|
+
| :--------------------- | :--------------------- | :--------------------------------------------- |
|
|
454
|
+
| `SetVerifyingKeysArgs` | `SetVerifyingKeysArgs` | The arguments for the setVerifyingKeys command |
|
|
455
|
+
|
|
456
|
+
#### Returns
|
|
457
|
+
|
|
458
|
+
`Promise`\<`void`\>
|
|
459
|
+
|
|
460
|
+
**`Note`**
|
|
461
|
+
|
|
462
|
+
see different options for zkey files to use specific circuits https://maci.pse.dev/docs/security/trusted-setup, https://maci.pse.dev/docs/testing/#pre-compiled-artifacts-for-testing
|
|
463
|
+
|
|
464
|
+
#### Defined in
|
|
465
|
+
|
|
466
|
+
[commands/setVerifyingKeys.ts:26](https://github.com/privacy-scaling-explorations/maci/blob/6a905de08/cli/ts/commands/setVerifyingKeys.ts#L26)
|
|
467
|
+
|
|
468
|
+
---
|
|
469
|
+
|
|
470
|
+
### signup
|
|
471
|
+
|
|
472
|
+
▸ **signup**(`args`): `Promise`\<`ISignupData`\>
|
|
473
|
+
|
|
474
|
+
Signup a user to the MACI contract
|
|
475
|
+
|
|
476
|
+
#### Parameters
|
|
477
|
+
|
|
478
|
+
| Name | Type | Description |
|
|
479
|
+
| :----- | :--------------------------------------- | :----------------------------------- |
|
|
480
|
+
| `args` | [`SignupArgs`](interfaces/SignupArgs.md) | The arguments for the signup command |
|
|
481
|
+
|
|
482
|
+
#### Returns
|
|
483
|
+
|
|
484
|
+
`Promise`\<`ISignupData`\>
|
|
485
|
+
|
|
486
|
+
The state index of the user and transaction hash
|
|
487
|
+
|
|
488
|
+
#### Defined in
|
|
489
|
+
|
|
490
|
+
[commands/signup.ts:17](https://github.com/privacy-scaling-explorations/maci/blob/6a905de08/cli/ts/commands/signup.ts#L17)
|
|
491
|
+
|
|
492
|
+
---
|
|
493
|
+
|
|
494
|
+
### timeTravel
|
|
495
|
+
|
|
496
|
+
▸ **timeTravel**(`«destructured»`): `Promise`\<`void`\>
|
|
497
|
+
|
|
498
|
+
Utility to travel in time when using a local blockchain
|
|
499
|
+
|
|
500
|
+
#### Parameters
|
|
501
|
+
|
|
502
|
+
| Name | Type |
|
|
503
|
+
| :--------------- | :--------------- |
|
|
504
|
+
| `«destructured»` | `TimeTravelArgs` |
|
|
505
|
+
|
|
506
|
+
#### Returns
|
|
507
|
+
|
|
508
|
+
`Promise`\<`void`\>
|
|
509
|
+
|
|
510
|
+
#### Defined in
|
|
511
|
+
|
|
512
|
+
[commands/timeTravel.ts:10](https://github.com/privacy-scaling-explorations/maci/blob/6a905de08/cli/ts/commands/timeTravel.ts#L10)
|
|
513
|
+
|
|
514
|
+
---
|
|
515
|
+
|
|
516
|
+
### topup
|
|
517
|
+
|
|
518
|
+
▸ **topup**(`TopupArgs`): `Promise`\<`void`\>
|
|
519
|
+
|
|
520
|
+
Publish a topup message
|
|
521
|
+
|
|
522
|
+
#### Parameters
|
|
523
|
+
|
|
524
|
+
| Name | Type | Description |
|
|
525
|
+
| :---------- | :------------------------------------- | :---------------------------------- |
|
|
526
|
+
| `TopupArgs` | [`TopupArgs`](interfaces/TopupArgs.md) | The arguments for the topup command |
|
|
527
|
+
|
|
528
|
+
#### Returns
|
|
529
|
+
|
|
530
|
+
`Promise`\<`void`\>
|
|
531
|
+
|
|
532
|
+
#### Defined in
|
|
533
|
+
|
|
534
|
+
[commands/topup.ts:9](https://github.com/privacy-scaling-explorations/maci/blob/6a905de08/cli/ts/commands/topup.ts#L9)
|
|
535
|
+
|
|
536
|
+
---
|
|
537
|
+
|
|
538
|
+
### verify
|
|
539
|
+
|
|
540
|
+
▸ **verify**(`VerifyArgs`): `Promise`\<`void`\>
|
|
541
|
+
|
|
542
|
+
Verify the results of a poll and optionally the subsidy results on-chain
|
|
543
|
+
|
|
544
|
+
#### Parameters
|
|
545
|
+
|
|
546
|
+
| Name | Type | Description |
|
|
547
|
+
| :----------- | :--------------------------------------- | :----------------------------------- |
|
|
548
|
+
| `VerifyArgs` | [`VerifyArgs`](interfaces/VerifyArgs.md) | The arguments for the verify command |
|
|
549
|
+
|
|
550
|
+
#### Returns
|
|
551
|
+
|
|
552
|
+
`Promise`\<`void`\>
|
|
553
|
+
|
|
554
|
+
#### Defined in
|
|
555
|
+
|
|
556
|
+
[commands/verify.ts:23](https://github.com/privacy-scaling-explorations/maci/blob/6a905de08/cli/ts/commands/verify.ts#L23)
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
TypeDoc added this file to prevent GitHub Pages from using Jekyll. You can turn off this behavior by setting the `githubPages` option to false.
|