@maci-protocol/website 0.0.0-ci.2653bc0
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,110 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Core
|
|
3
|
+
sidebar_label: Core
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
[![NPM Package][core-npm-badge]][core-npm-link]
|
|
7
|
+
[![Actions Status][core-actions-badge]][core-actions-link]
|
|
8
|
+
|
|
9
|
+
This submodule assists with handling key business logic functions and
|
|
10
|
+
processes.
|
|
11
|
+
|
|
12
|
+
## Overview
|
|
13
|
+
|
|
14
|
+
One may conceive of MACI as a state machine with 1) data and 2) functions which
|
|
15
|
+
transform said data. This makes it easier to reason about the system, write
|
|
16
|
+
tests, and implement functionality. It also allows us to implement the smart
|
|
17
|
+
contracts in discrete components which are easy to test.
|
|
18
|
+
|
|
19
|
+
To this end, this submodule exposes a `MaciState` class and a `Poll` class.
|
|
20
|
+
Developers should instantiate objects from these classes to test MACI. For
|
|
21
|
+
instance, [`MACI.test.ts`](https://github.com/privacy-scaling-explorations/maci/blob/dev/packages/contracts/tests/MACI.test.ts) creates a
|
|
22
|
+
`MaciState` object and every time it interacts with the MACI smart contract, it
|
|
23
|
+
mirrors said interaction on the `MaciState` and `Poll`. As such, the developer
|
|
24
|
+
can then use their helper functions like `maciState.signUp()`,
|
|
25
|
+
`poll.publishMessage`, `poll.processMessages()`, and `poll.tallyVotes()` to
|
|
26
|
+
step through the various stages of the MACI flow.
|
|
27
|
+
|
|
28
|
+
## `MaciState`
|
|
29
|
+
|
|
30
|
+
### Key functions
|
|
31
|
+
|
|
32
|
+
#### **`signUp`**
|
|
33
|
+
|
|
34
|
+
Accepts a user's public key and creates a new state leaf and ballot leaf.
|
|
35
|
+
|
|
36
|
+
In testing, whenever a test suite submits a `signUp()` transaction, it should
|
|
37
|
+
call `maciState.signUp()` as well, so that the off-chain representation of MACI
|
|
38
|
+
is kept up to date.
|
|
39
|
+
|
|
40
|
+
In production, `genMaciStateFromContract()` in
|
|
41
|
+
[`genMaciState.ts`](https://github.com/privacy-scaling-explorations/maci/blob/dev/contracts/ts/genMaciState.ts) uses this function when it
|
|
42
|
+
scans a MACI contract's event log for signups, so as to bring its `MaciState`
|
|
43
|
+
instance up to date.
|
|
44
|
+
|
|
45
|
+
#### **`deployPoll`**
|
|
46
|
+
|
|
47
|
+
Creates a new `Poll`. This should be done whenever the MACI contract's
|
|
48
|
+
`deployPoll()` function is called.
|
|
49
|
+
|
|
50
|
+
### Helper functions
|
|
51
|
+
|
|
52
|
+
#### **`copy`**
|
|
53
|
+
|
|
54
|
+
A function that deep-copies an object.
|
|
55
|
+
|
|
56
|
+
### Key data structures
|
|
57
|
+
|
|
58
|
+
#### **`stateTree`**
|
|
59
|
+
|
|
60
|
+
`stateTree` is a quinary Merkle tree, chosen over a binary tree due to the gas and circuit constraints associated with the Poseidon hash function ([details here][ethresearch-link]). Each leaf in this tree represents a participant's public key, their voice credit balance and the block timestamp at which they signed up. The tree features a configurable depth and an arity of five, with insertions starting at index 1. The zeroth leaf is reserved as a security measure against denial-of-service attacks.
|
|
61
|
+
|
|
62
|
+
## **`Poll`**
|
|
63
|
+
|
|
64
|
+
A `Poll` is an off-chain representation of a Poll. In testing, `Poll` instances
|
|
65
|
+
should mirror their on-chain counterparts.
|
|
66
|
+
|
|
67
|
+
### Key functions
|
|
68
|
+
|
|
69
|
+
#### **`publishMessage`**
|
|
70
|
+
|
|
71
|
+
Publishes a message by updating the message tree and message accumulation
|
|
72
|
+
queue.
|
|
73
|
+
|
|
74
|
+
#### **`processMessages`**
|
|
75
|
+
|
|
76
|
+
Processes a batch of messages and returns the inputs to the `processMessages`
|
|
77
|
+
circuit which can be used to prove correct execution.
|
|
78
|
+
|
|
79
|
+
#### **`tallyVotes`**
|
|
80
|
+
|
|
81
|
+
Tallies a batch of votes and returns the inputs to the `tallyVotes`
|
|
82
|
+
circuit which can be used to prove correct execution.
|
|
83
|
+
|
|
84
|
+
### Helper functions
|
|
85
|
+
|
|
86
|
+
#### **`copy`**
|
|
87
|
+
|
|
88
|
+
Deep-copies and returns this object.
|
|
89
|
+
|
|
90
|
+
### Key data structures
|
|
91
|
+
|
|
92
|
+
#### **`messageTree`**
|
|
93
|
+
|
|
94
|
+
`messageTree` is also a quinary Merkle tree. Each message in this tree represents an encrypted command, such as a user casting a vote in a poll or changing their public key.
|
|
95
|
+
|
|
96
|
+
## Testing
|
|
97
|
+
|
|
98
|
+
For more details about testing please refer to the [tests documentation](https://maci.pse.dev/docs/testing).
|
|
99
|
+
|
|
100
|
+
[core-npm-badge]: https://img.shields.io/npm/v/maci-core.svg
|
|
101
|
+
[core-npm-link]: https://www.npmjs.com/package/maci-core
|
|
102
|
+
[core-actions-badge]: https://github.com/privacy-scaling-explorations/maci/actions/workflows/core-build.yml/badge.svg
|
|
103
|
+
[core-actions-link]: https://github.com/privacy-scaling-explorations/maci/actions?query=workflow%3Acore
|
|
104
|
+
[ethresearch-link]: https://ethresear.ch/t/gas-and-circuit-constraint-benchmarks-of-binary-and-quinary-incremental-merkle-trees-using-the-poseidon-hash-function/7446
|
|
105
|
+
|
|
106
|
+
## Directory Structure
|
|
107
|
+
|
|
108
|
+
- `ts/`: The home for our core classes, `MaciState` and `Poll`
|
|
109
|
+
- `ts/utls/`: Contains supporting utilities
|
|
110
|
+
- `ts/__tests__/`: A dedicated test suite directory
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: BatchSizes
|
|
3
|
+
sidebar_label: BatchSizes
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
This interface defines the batch sizes.
|
|
7
|
+
|
|
8
|
+
## Table of contents
|
|
9
|
+
|
|
10
|
+
### Properties
|
|
11
|
+
|
|
12
|
+
- [messageBatchSize](BatchSizes.md#messagebatchsize)
|
|
13
|
+
- [subsidyBatchSize](BatchSizes.md#subsidybatchsize)
|
|
14
|
+
- [tallyBatchSize](BatchSizes.md#tallybatchsize)
|
|
15
|
+
|
|
16
|
+
## Properties
|
|
17
|
+
|
|
18
|
+
### messageBatchSize
|
|
19
|
+
|
|
20
|
+
• **messageBatchSize**: `number`
|
|
21
|
+
|
|
22
|
+
The size of the message batch.
|
|
23
|
+
|
|
24
|
+
#### Defined in
|
|
25
|
+
|
|
26
|
+
[utils/types.ts:46](https://github.com/privacy-scaling-explorations/maci/blob/6a905de08/core/ts/utils/types.ts#L46)
|
|
27
|
+
|
|
28
|
+
---
|
|
29
|
+
|
|
30
|
+
### subsidyBatchSize
|
|
31
|
+
|
|
32
|
+
• **subsidyBatchSize**: `number`
|
|
33
|
+
|
|
34
|
+
The size of the subsidy batch.
|
|
35
|
+
|
|
36
|
+
#### Defined in
|
|
37
|
+
|
|
38
|
+
[utils/types.ts:47](https://github.com/privacy-scaling-explorations/maci/blob/6a905de08/core/ts/utils/types.ts#L47)
|
|
39
|
+
|
|
40
|
+
---
|
|
41
|
+
|
|
42
|
+
### tallyBatchSize
|
|
43
|
+
|
|
44
|
+
• **tallyBatchSize**: `number`
|
|
45
|
+
|
|
46
|
+
The size of the tally batch.
|
|
47
|
+
|
|
48
|
+
#### Defined in
|
|
49
|
+
|
|
50
|
+
[utils/types.ts:45](https://github.com/privacy-scaling-explorations/maci/blob/6a905de08/core/ts/utils/types.ts#L45)
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: IJsonMaciState
|
|
3
|
+
sidebar_label: IJsonMaciState
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
This interface defines the JSON representation of a MaciState
|
|
7
|
+
|
|
8
|
+
## Table of contents
|
|
9
|
+
|
|
10
|
+
### Properties
|
|
11
|
+
|
|
12
|
+
- [currentPollBeingProcessed](IJsonMaciState.md#currentpollbeingprocessed)
|
|
13
|
+
- [numSignUps](IJsonMaciState.md#numsignups)
|
|
14
|
+
- [pollBeingProcessed](IJsonMaciState.md#pollbeingprocessed)
|
|
15
|
+
- [polls](IJsonMaciState.md#polls)
|
|
16
|
+
- [stateLeaves](IJsonMaciState.md#stateleaves)
|
|
17
|
+
- [stateTreeDepth](IJsonMaciState.md#statetreedepth)
|
|
18
|
+
|
|
19
|
+
## Properties
|
|
20
|
+
|
|
21
|
+
### currentPollBeingProcessed
|
|
22
|
+
|
|
23
|
+
• **currentPollBeingProcessed**: `string`
|
|
24
|
+
|
|
25
|
+
#### Defined in
|
|
26
|
+
|
|
27
|
+
[utils/types.ts:130](https://github.com/privacy-scaling-explorations/maci/blob/6a905de08/core/ts/utils/types.ts#L130)
|
|
28
|
+
|
|
29
|
+
---
|
|
30
|
+
|
|
31
|
+
### numSignUps
|
|
32
|
+
|
|
33
|
+
• **numSignUps**: `number`
|
|
34
|
+
|
|
35
|
+
#### Defined in
|
|
36
|
+
|
|
37
|
+
[utils/types.ts:131](https://github.com/privacy-scaling-explorations/maci/blob/6a905de08/core/ts/utils/types.ts#L131)
|
|
38
|
+
|
|
39
|
+
---
|
|
40
|
+
|
|
41
|
+
### pollBeingProcessed
|
|
42
|
+
|
|
43
|
+
• **pollBeingProcessed**: `boolean`
|
|
44
|
+
|
|
45
|
+
#### Defined in
|
|
46
|
+
|
|
47
|
+
[utils/types.ts:129](https://github.com/privacy-scaling-explorations/maci/blob/6a905de08/core/ts/utils/types.ts#L129)
|
|
48
|
+
|
|
49
|
+
---
|
|
50
|
+
|
|
51
|
+
### polls
|
|
52
|
+
|
|
53
|
+
• **polls**: `IJsonPoll`[]
|
|
54
|
+
|
|
55
|
+
#### Defined in
|
|
56
|
+
|
|
57
|
+
[utils/types.ts:127](https://github.com/privacy-scaling-explorations/maci/blob/6a905de08/core/ts/utils/types.ts#L127)
|
|
58
|
+
|
|
59
|
+
---
|
|
60
|
+
|
|
61
|
+
### stateLeaves
|
|
62
|
+
|
|
63
|
+
• **stateLeaves**: `IJsonStateLeaf`[]
|
|
64
|
+
|
|
65
|
+
#### Defined in
|
|
66
|
+
|
|
67
|
+
[utils/types.ts:128](https://github.com/privacy-scaling-explorations/maci/blob/6a905de08/core/ts/utils/types.ts#L128)
|
|
68
|
+
|
|
69
|
+
---
|
|
70
|
+
|
|
71
|
+
### stateTreeDepth
|
|
72
|
+
|
|
73
|
+
• **stateTreeDepth**: `number`
|
|
74
|
+
|
|
75
|
+
#### Defined in
|
|
76
|
+
|
|
77
|
+
[utils/types.ts:126](https://github.com/privacy-scaling-explorations/maci/blob/6a905de08/core/ts/utils/types.ts#L126)
|
|
@@ -0,0 +1,242 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: IProcessMessagesCircuitInputs
|
|
3
|
+
sidebar_label: IProcessMessagesCircuitInputs
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
An interface describing the circuit inputs to the ProcessMessage circuit
|
|
7
|
+
|
|
8
|
+
## Table of contents
|
|
9
|
+
|
|
10
|
+
### Properties
|
|
11
|
+
|
|
12
|
+
- [coordPrivKey](IProcessMessagesCircuitInputs.md#coordprivkey)
|
|
13
|
+
- [coordPubKey](IProcessMessagesCircuitInputs.md#coordpubkey)
|
|
14
|
+
- [currentBallotRoot](IProcessMessagesCircuitInputs.md#currentballotroot)
|
|
15
|
+
- [currentBallots](IProcessMessagesCircuitInputs.md#currentballots)
|
|
16
|
+
- [currentBallotsPathElements](IProcessMessagesCircuitInputs.md#currentballotspathelements)
|
|
17
|
+
- [currentSbCommitment](IProcessMessagesCircuitInputs.md#currentsbcommitment)
|
|
18
|
+
- [currentSbSalt](IProcessMessagesCircuitInputs.md#currentsbsalt)
|
|
19
|
+
- [currentStateLeaves](IProcessMessagesCircuitInputs.md#currentstateleaves)
|
|
20
|
+
- [currentStateLeavesPathElements](IProcessMessagesCircuitInputs.md#currentstateleavespathelements)
|
|
21
|
+
- [currentStateRoot](IProcessMessagesCircuitInputs.md#currentstateroot)
|
|
22
|
+
- [currentVoteWeights](IProcessMessagesCircuitInputs.md#currentvoteweights)
|
|
23
|
+
- [currentVoteWeightsPathElements](IProcessMessagesCircuitInputs.md#currentvoteweightspathelements)
|
|
24
|
+
- [encPubKeys](IProcessMessagesCircuitInputs.md#encpubkeys)
|
|
25
|
+
- [inputHash](IProcessMessagesCircuitInputs.md#inputhash)
|
|
26
|
+
- [msgRoot](IProcessMessagesCircuitInputs.md#msgroot)
|
|
27
|
+
- [msgSubrootPathElements](IProcessMessagesCircuitInputs.md#msgsubrootpathelements)
|
|
28
|
+
- [msgs](IProcessMessagesCircuitInputs.md#msgs)
|
|
29
|
+
- [newSbCommitment](IProcessMessagesCircuitInputs.md#newsbcommitment)
|
|
30
|
+
- [newSbSalt](IProcessMessagesCircuitInputs.md#newsbsalt)
|
|
31
|
+
- [packedVals](IProcessMessagesCircuitInputs.md#packedvals)
|
|
32
|
+
- [pollEndTimestamp](IProcessMessagesCircuitInputs.md#pollendtimestamp)
|
|
33
|
+
|
|
34
|
+
## Properties
|
|
35
|
+
|
|
36
|
+
### coordPrivKey
|
|
37
|
+
|
|
38
|
+
• **coordPrivKey**: `string`
|
|
39
|
+
|
|
40
|
+
#### Defined in
|
|
41
|
+
|
|
42
|
+
[utils/types.ts:159](https://github.com/privacy-scaling-explorations/maci/blob/6a905de08/core/ts/utils/types.ts#L159)
|
|
43
|
+
|
|
44
|
+
---
|
|
45
|
+
|
|
46
|
+
### coordPubKey
|
|
47
|
+
|
|
48
|
+
• **coordPubKey**: `string`
|
|
49
|
+
|
|
50
|
+
#### Defined in
|
|
51
|
+
|
|
52
|
+
[utils/types.ts:160](https://github.com/privacy-scaling-explorations/maci/blob/6a905de08/core/ts/utils/types.ts#L160)
|
|
53
|
+
|
|
54
|
+
---
|
|
55
|
+
|
|
56
|
+
### currentBallotRoot
|
|
57
|
+
|
|
58
|
+
• **currentBallotRoot**: `string`
|
|
59
|
+
|
|
60
|
+
#### Defined in
|
|
61
|
+
|
|
62
|
+
[utils/types.ts:163](https://github.com/privacy-scaling-explorations/maci/blob/6a905de08/core/ts/utils/types.ts#L163)
|
|
63
|
+
|
|
64
|
+
---
|
|
65
|
+
|
|
66
|
+
### currentBallots
|
|
67
|
+
|
|
68
|
+
• **currentBallots**: `string`[]
|
|
69
|
+
|
|
70
|
+
#### Defined in
|
|
71
|
+
|
|
72
|
+
[utils/types.ts:168](https://github.com/privacy-scaling-explorations/maci/blob/6a905de08/core/ts/utils/types.ts#L168)
|
|
73
|
+
|
|
74
|
+
---
|
|
75
|
+
|
|
76
|
+
### currentBallotsPathElements
|
|
77
|
+
|
|
78
|
+
• **currentBallotsPathElements**: `string`[][]
|
|
79
|
+
|
|
80
|
+
#### Defined in
|
|
81
|
+
|
|
82
|
+
[utils/types.ts:169](https://github.com/privacy-scaling-explorations/maci/blob/6a905de08/core/ts/utils/types.ts#L169)
|
|
83
|
+
|
|
84
|
+
---
|
|
85
|
+
|
|
86
|
+
### currentSbCommitment
|
|
87
|
+
|
|
88
|
+
• **currentSbCommitment**: `string`
|
|
89
|
+
|
|
90
|
+
#### Defined in
|
|
91
|
+
|
|
92
|
+
[utils/types.ts:164](https://github.com/privacy-scaling-explorations/maci/blob/6a905de08/core/ts/utils/types.ts#L164)
|
|
93
|
+
|
|
94
|
+
---
|
|
95
|
+
|
|
96
|
+
### currentSbSalt
|
|
97
|
+
|
|
98
|
+
• **currentSbSalt**: `string`
|
|
99
|
+
|
|
100
|
+
#### Defined in
|
|
101
|
+
|
|
102
|
+
[utils/types.ts:165](https://github.com/privacy-scaling-explorations/maci/blob/6a905de08/core/ts/utils/types.ts#L165)
|
|
103
|
+
|
|
104
|
+
---
|
|
105
|
+
|
|
106
|
+
### currentStateLeaves
|
|
107
|
+
|
|
108
|
+
• **currentStateLeaves**: `string`[]
|
|
109
|
+
|
|
110
|
+
#### Defined in
|
|
111
|
+
|
|
112
|
+
[utils/types.ts:166](https://github.com/privacy-scaling-explorations/maci/blob/6a905de08/core/ts/utils/types.ts#L166)
|
|
113
|
+
|
|
114
|
+
---
|
|
115
|
+
|
|
116
|
+
### currentStateLeavesPathElements
|
|
117
|
+
|
|
118
|
+
• **currentStateLeavesPathElements**: `string`[][]
|
|
119
|
+
|
|
120
|
+
#### Defined in
|
|
121
|
+
|
|
122
|
+
[utils/types.ts:167](https://github.com/privacy-scaling-explorations/maci/blob/6a905de08/core/ts/utils/types.ts#L167)
|
|
123
|
+
|
|
124
|
+
---
|
|
125
|
+
|
|
126
|
+
### currentStateRoot
|
|
127
|
+
|
|
128
|
+
• **currentStateRoot**: `string`
|
|
129
|
+
|
|
130
|
+
#### Defined in
|
|
131
|
+
|
|
132
|
+
[utils/types.ts:162](https://github.com/privacy-scaling-explorations/maci/blob/6a905de08/core/ts/utils/types.ts#L162)
|
|
133
|
+
|
|
134
|
+
---
|
|
135
|
+
|
|
136
|
+
### currentVoteWeights
|
|
137
|
+
|
|
138
|
+
• **currentVoteWeights**: `string`[]
|
|
139
|
+
|
|
140
|
+
#### Defined in
|
|
141
|
+
|
|
142
|
+
[utils/types.ts:170](https://github.com/privacy-scaling-explorations/maci/blob/6a905de08/core/ts/utils/types.ts#L170)
|
|
143
|
+
|
|
144
|
+
---
|
|
145
|
+
|
|
146
|
+
### currentVoteWeightsPathElements
|
|
147
|
+
|
|
148
|
+
• **currentVoteWeightsPathElements**: `string`[][]
|
|
149
|
+
|
|
150
|
+
#### Defined in
|
|
151
|
+
|
|
152
|
+
[utils/types.ts:171](https://github.com/privacy-scaling-explorations/maci/blob/6a905de08/core/ts/utils/types.ts#L171)
|
|
153
|
+
|
|
154
|
+
---
|
|
155
|
+
|
|
156
|
+
### encPubKeys
|
|
157
|
+
|
|
158
|
+
• **encPubKeys**: `string`[]
|
|
159
|
+
|
|
160
|
+
#### Defined in
|
|
161
|
+
|
|
162
|
+
[utils/types.ts:161](https://github.com/privacy-scaling-explorations/maci/blob/6a905de08/core/ts/utils/types.ts#L161)
|
|
163
|
+
|
|
164
|
+
---
|
|
165
|
+
|
|
166
|
+
### inputHash
|
|
167
|
+
|
|
168
|
+
• **inputHash**: `string`
|
|
169
|
+
|
|
170
|
+
#### Defined in
|
|
171
|
+
|
|
172
|
+
[utils/types.ts:172](https://github.com/privacy-scaling-explorations/maci/blob/6a905de08/core/ts/utils/types.ts#L172)
|
|
173
|
+
|
|
174
|
+
---
|
|
175
|
+
|
|
176
|
+
### msgRoot
|
|
177
|
+
|
|
178
|
+
• **msgRoot**: `string`
|
|
179
|
+
|
|
180
|
+
#### Defined in
|
|
181
|
+
|
|
182
|
+
[utils/types.ts:156](https://github.com/privacy-scaling-explorations/maci/blob/6a905de08/core/ts/utils/types.ts#L156)
|
|
183
|
+
|
|
184
|
+
---
|
|
185
|
+
|
|
186
|
+
### msgSubrootPathElements
|
|
187
|
+
|
|
188
|
+
• **msgSubrootPathElements**: `string`[][]
|
|
189
|
+
|
|
190
|
+
#### Defined in
|
|
191
|
+
|
|
192
|
+
[utils/types.ts:158](https://github.com/privacy-scaling-explorations/maci/blob/6a905de08/core/ts/utils/types.ts#L158)
|
|
193
|
+
|
|
194
|
+
---
|
|
195
|
+
|
|
196
|
+
### msgs
|
|
197
|
+
|
|
198
|
+
• **msgs**: `string`[]
|
|
199
|
+
|
|
200
|
+
#### Defined in
|
|
201
|
+
|
|
202
|
+
[utils/types.ts:157](https://github.com/privacy-scaling-explorations/maci/blob/6a905de08/core/ts/utils/types.ts#L157)
|
|
203
|
+
|
|
204
|
+
---
|
|
205
|
+
|
|
206
|
+
### newSbCommitment
|
|
207
|
+
|
|
208
|
+
• **newSbCommitment**: `string`
|
|
209
|
+
|
|
210
|
+
#### Defined in
|
|
211
|
+
|
|
212
|
+
[utils/types.ts:174](https://github.com/privacy-scaling-explorations/maci/blob/6a905de08/core/ts/utils/types.ts#L174)
|
|
213
|
+
|
|
214
|
+
---
|
|
215
|
+
|
|
216
|
+
### newSbSalt
|
|
217
|
+
|
|
218
|
+
• **newSbSalt**: `string`
|
|
219
|
+
|
|
220
|
+
#### Defined in
|
|
221
|
+
|
|
222
|
+
[utils/types.ts:173](https://github.com/privacy-scaling-explorations/maci/blob/6a905de08/core/ts/utils/types.ts#L173)
|
|
223
|
+
|
|
224
|
+
---
|
|
225
|
+
|
|
226
|
+
### packedVals
|
|
227
|
+
|
|
228
|
+
• **packedVals**: `string`
|
|
229
|
+
|
|
230
|
+
#### Defined in
|
|
231
|
+
|
|
232
|
+
[utils/types.ts:155](https://github.com/privacy-scaling-explorations/maci/blob/6a905de08/core/ts/utils/types.ts#L155)
|
|
233
|
+
|
|
234
|
+
---
|
|
235
|
+
|
|
236
|
+
### pollEndTimestamp
|
|
237
|
+
|
|
238
|
+
• **pollEndTimestamp**: `string`
|
|
239
|
+
|
|
240
|
+
#### Defined in
|
|
241
|
+
|
|
242
|
+
[utils/types.ts:154](https://github.com/privacy-scaling-explorations/maci/blob/6a905de08/core/ts/utils/types.ts#L154)
|
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: ISubsidyCircuitInputs
|
|
3
|
+
sidebar_label: ISubsidyCircuitInputs
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
An interface describing the circuit inputs to the Subsidy circuit
|
|
7
|
+
|
|
8
|
+
## Table of contents
|
|
9
|
+
|
|
10
|
+
### Properties
|
|
11
|
+
|
|
12
|
+
- [ballotPathElements1](ISubsidyCircuitInputs.md#ballotpathelements1)
|
|
13
|
+
- [ballotPathElements2](ISubsidyCircuitInputs.md#ballotpathelements2)
|
|
14
|
+
- [ballotRoot](ISubsidyCircuitInputs.md#ballotroot)
|
|
15
|
+
- [ballots1](ISubsidyCircuitInputs.md#ballots1)
|
|
16
|
+
- [ballots2](ISubsidyCircuitInputs.md#ballots2)
|
|
17
|
+
- [currentSubsidy](ISubsidyCircuitInputs.md#currentsubsidy)
|
|
18
|
+
- [currentSubsidyCommitment](ISubsidyCircuitInputs.md#currentsubsidycommitment)
|
|
19
|
+
- [currentSubsidySalt](ISubsidyCircuitInputs.md#currentsubsidysalt)
|
|
20
|
+
- [inputHash](ISubsidyCircuitInputs.md#inputhash)
|
|
21
|
+
- [newSubsidyCommitment](ISubsidyCircuitInputs.md#newsubsidycommitment)
|
|
22
|
+
- [newSubsidySalt](ISubsidyCircuitInputs.md#newsubsidysalt)
|
|
23
|
+
- [packedVals](ISubsidyCircuitInputs.md#packedvals)
|
|
24
|
+
- [sbCommitment](ISubsidyCircuitInputs.md#sbcommitment)
|
|
25
|
+
- [sbSalt](ISubsidyCircuitInputs.md#sbsalt)
|
|
26
|
+
- [stateRoot](ISubsidyCircuitInputs.md#stateroot)
|
|
27
|
+
- [votes1](ISubsidyCircuitInputs.md#votes1)
|
|
28
|
+
- [votes2](ISubsidyCircuitInputs.md#votes2)
|
|
29
|
+
|
|
30
|
+
## Properties
|
|
31
|
+
|
|
32
|
+
### ballotPathElements1
|
|
33
|
+
|
|
34
|
+
• **ballotPathElements1**: `string`[]
|
|
35
|
+
|
|
36
|
+
#### Defined in
|
|
37
|
+
|
|
38
|
+
[utils/types.ts:222](https://github.com/privacy-scaling-explorations/maci/blob/6a905de08/core/ts/utils/types.ts#L222)
|
|
39
|
+
|
|
40
|
+
---
|
|
41
|
+
|
|
42
|
+
### ballotPathElements2
|
|
43
|
+
|
|
44
|
+
• **ballotPathElements2**: `string`[]
|
|
45
|
+
|
|
46
|
+
#### Defined in
|
|
47
|
+
|
|
48
|
+
[utils/types.ts:223](https://github.com/privacy-scaling-explorations/maci/blob/6a905de08/core/ts/utils/types.ts#L223)
|
|
49
|
+
|
|
50
|
+
---
|
|
51
|
+
|
|
52
|
+
### ballotRoot
|
|
53
|
+
|
|
54
|
+
• **ballotRoot**: `string`
|
|
55
|
+
|
|
56
|
+
#### Defined in
|
|
57
|
+
|
|
58
|
+
[utils/types.ts:208](https://github.com/privacy-scaling-explorations/maci/blob/6a905de08/core/ts/utils/types.ts#L208)
|
|
59
|
+
|
|
60
|
+
---
|
|
61
|
+
|
|
62
|
+
### ballots1
|
|
63
|
+
|
|
64
|
+
• **ballots1**: `string`[]
|
|
65
|
+
|
|
66
|
+
#### Defined in
|
|
67
|
+
|
|
68
|
+
[utils/types.ts:218](https://github.com/privacy-scaling-explorations/maci/blob/6a905de08/core/ts/utils/types.ts#L218)
|
|
69
|
+
|
|
70
|
+
---
|
|
71
|
+
|
|
72
|
+
### ballots2
|
|
73
|
+
|
|
74
|
+
• **ballots2**: `string`[]
|
|
75
|
+
|
|
76
|
+
#### Defined in
|
|
77
|
+
|
|
78
|
+
[utils/types.ts:219](https://github.com/privacy-scaling-explorations/maci/blob/6a905de08/core/ts/utils/types.ts#L219)
|
|
79
|
+
|
|
80
|
+
---
|
|
81
|
+
|
|
82
|
+
### currentSubsidy
|
|
83
|
+
|
|
84
|
+
• **currentSubsidy**: `string`[]
|
|
85
|
+
|
|
86
|
+
#### Defined in
|
|
87
|
+
|
|
88
|
+
[utils/types.ts:215](https://github.com/privacy-scaling-explorations/maci/blob/6a905de08/core/ts/utils/types.ts#L215)
|
|
89
|
+
|
|
90
|
+
---
|
|
91
|
+
|
|
92
|
+
### currentSubsidyCommitment
|
|
93
|
+
|
|
94
|
+
• **currentSubsidyCommitment**: `string`
|
|
95
|
+
|
|
96
|
+
#### Defined in
|
|
97
|
+
|
|
98
|
+
[utils/types.ts:213](https://github.com/privacy-scaling-explorations/maci/blob/6a905de08/core/ts/utils/types.ts#L213)
|
|
99
|
+
|
|
100
|
+
---
|
|
101
|
+
|
|
102
|
+
### currentSubsidySalt
|
|
103
|
+
|
|
104
|
+
• **currentSubsidySalt**: `string`
|
|
105
|
+
|
|
106
|
+
#### Defined in
|
|
107
|
+
|
|
108
|
+
[utils/types.ts:210](https://github.com/privacy-scaling-explorations/maci/blob/6a905de08/core/ts/utils/types.ts#L210)
|
|
109
|
+
|
|
110
|
+
---
|
|
111
|
+
|
|
112
|
+
### inputHash
|
|
113
|
+
|
|
114
|
+
• **inputHash**: `string`
|
|
115
|
+
|
|
116
|
+
#### Defined in
|
|
117
|
+
|
|
118
|
+
[utils/types.ts:217](https://github.com/privacy-scaling-explorations/maci/blob/6a905de08/core/ts/utils/types.ts#L217)
|
|
119
|
+
|
|
120
|
+
---
|
|
121
|
+
|
|
122
|
+
### newSubsidyCommitment
|
|
123
|
+
|
|
124
|
+
• **newSubsidyCommitment**: `string`
|
|
125
|
+
|
|
126
|
+
#### Defined in
|
|
127
|
+
|
|
128
|
+
[utils/types.ts:214](https://github.com/privacy-scaling-explorations/maci/blob/6a905de08/core/ts/utils/types.ts#L214)
|
|
129
|
+
|
|
130
|
+
---
|
|
131
|
+
|
|
132
|
+
### newSubsidySalt
|
|
133
|
+
|
|
134
|
+
• **newSubsidySalt**: `string`
|
|
135
|
+
|
|
136
|
+
#### Defined in
|
|
137
|
+
|
|
138
|
+
[utils/types.ts:211](https://github.com/privacy-scaling-explorations/maci/blob/6a905de08/core/ts/utils/types.ts#L211)
|
|
139
|
+
|
|
140
|
+
---
|
|
141
|
+
|
|
142
|
+
### packedVals
|
|
143
|
+
|
|
144
|
+
• **packedVals**: `string`
|
|
145
|
+
|
|
146
|
+
#### Defined in
|
|
147
|
+
|
|
148
|
+
[utils/types.ts:216](https://github.com/privacy-scaling-explorations/maci/blob/6a905de08/core/ts/utils/types.ts#L216)
|
|
149
|
+
|
|
150
|
+
---
|
|
151
|
+
|
|
152
|
+
### sbCommitment
|
|
153
|
+
|
|
154
|
+
• **sbCommitment**: `string`
|
|
155
|
+
|
|
156
|
+
#### Defined in
|
|
157
|
+
|
|
158
|
+
[utils/types.ts:212](https://github.com/privacy-scaling-explorations/maci/blob/6a905de08/core/ts/utils/types.ts#L212)
|
|
159
|
+
|
|
160
|
+
---
|
|
161
|
+
|
|
162
|
+
### sbSalt
|
|
163
|
+
|
|
164
|
+
• **sbSalt**: `string`
|
|
165
|
+
|
|
166
|
+
#### Defined in
|
|
167
|
+
|
|
168
|
+
[utils/types.ts:209](https://github.com/privacy-scaling-explorations/maci/blob/6a905de08/core/ts/utils/types.ts#L209)
|
|
169
|
+
|
|
170
|
+
---
|
|
171
|
+
|
|
172
|
+
### stateRoot
|
|
173
|
+
|
|
174
|
+
• **stateRoot**: `string`
|
|
175
|
+
|
|
176
|
+
#### Defined in
|
|
177
|
+
|
|
178
|
+
[utils/types.ts:207](https://github.com/privacy-scaling-explorations/maci/blob/6a905de08/core/ts/utils/types.ts#L207)
|
|
179
|
+
|
|
180
|
+
---
|
|
181
|
+
|
|
182
|
+
### votes1
|
|
183
|
+
|
|
184
|
+
• **votes1**: `number`[]
|
|
185
|
+
|
|
186
|
+
#### Defined in
|
|
187
|
+
|
|
188
|
+
[utils/types.ts:220](https://github.com/privacy-scaling-explorations/maci/blob/6a905de08/core/ts/utils/types.ts#L220)
|
|
189
|
+
|
|
190
|
+
---
|
|
191
|
+
|
|
192
|
+
### votes2
|
|
193
|
+
|
|
194
|
+
• **votes2**: `number`[]
|
|
195
|
+
|
|
196
|
+
#### Defined in
|
|
197
|
+
|
|
198
|
+
[utils/types.ts:221](https://github.com/privacy-scaling-explorations/maci/blob/6a905de08/core/ts/utils/types.ts#L221)
|