@maci-protocol/website 0.0.0-ci.26f28d6

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.
Files changed (406) hide show
  1. package/.eslintrc.js +157 -0
  2. package/CHANGELOG.md +566 -0
  3. package/LICENSE +22 -0
  4. package/README.md +58 -0
  5. package/babel.config.js +3 -0
  6. package/blog/2021-10-12-maci-v1.md +100 -0
  7. package/blog/2022-09-22-maci-v1-technical-introduction.md +180 -0
  8. package/blog/2023-01-18-maci-v1.1.1.md +121 -0
  9. package/blog/2024-01-18-roadmap.md +106 -0
  10. package/blog/2024-02-28-maci-v1.2.0.md +121 -0
  11. package/blog/2024-04-10-roadmap-q2.md +96 -0
  12. package/blog/2024-05-08-ethdam.md +169 -0
  13. package/blog/2024-05-22-the-origins-of-maci.md +38 -0
  14. package/blog/2024-05-28-upcoming-grants.md +85 -0
  15. package/blog/2024-06-17-understanding-maci.md +63 -0
  16. package/blog/2024-06-21-deciphering-maci.md +48 -0
  17. package/blog/2024-06-28-revolusioning-public-goods-funding.md +32 -0
  18. package/blog/2024-07-23-q2-review.md +72 -0
  19. package/blog/2024-07-30-roadmap-q3.md +61 -0
  20. package/blog/2024-08-10-maci-v2.md +102 -0
  21. package/blog/2024-08-29-anonymous-poll-joining.md +47 -0
  22. package/blog/2024-10-29-q3-review.md +63 -0
  23. package/blog/2024-11-20-maci-platform.md +93 -0
  24. package/blog/2024-12-01-maci-getting-started.md +294 -0
  25. package/blog/2025-03-21-roadmap-2025.md +112 -0
  26. package/blog/assets/MACI_Bob_SignUp_1.png +0 -0
  27. package/blog/assets/MACI_Bob_SignUp_2.png +0 -0
  28. package/blog/assets/MACI_Complex_Message.png +0 -0
  29. package/blog/assets/MACI_Contracts.png +0 -0
  30. package/blog/assets/MACI_Sign_Up.png +0 -0
  31. package/blog/assets/MACI_Simple_Message.png +0 -0
  32. package/blog/assets/MACI_Verifier_1.png +0 -0
  33. package/blog/authors.yml +5 -0
  34. package/docusaurus.config.ts +213 -0
  35. package/package.json +65 -0
  36. package/src/components/ActionCard/index.tsx +30 -0
  37. package/src/components/ActionCard/styles.module.css +96 -0
  38. package/src/components/HomepageFeatures/index.tsx +91 -0
  39. package/src/components/HomepageFeatures/styles.module.css +17 -0
  40. package/src/components/ProjectCard/index.tsx +74 -0
  41. package/src/components/ProjectCard/styles.module.css +77 -0
  42. package/src/components/ProjectList/index.tsx +218 -0
  43. package/src/components/ProjectList/styles.module.css +180 -0
  44. package/src/content/projects.json +294 -0
  45. package/src/css/card.module.css +130 -0
  46. package/src/css/custom.css +91 -0
  47. package/src/icons/IconDiscord.tsx +16 -0
  48. package/src/icons/IconGithub.tsx +16 -0
  49. package/src/icons/IconWebsite.tsx +16 -0
  50. package/src/pages/blogs.tsx +58 -0
  51. package/src/pages/index.module.css +152 -0
  52. package/src/pages/index.tsx +66 -0
  53. package/src/pages/projects.tsx +44 -0
  54. package/src/pages/roadmap.md +150 -0
  55. package/src/pages/typedoc.tsx +11 -0
  56. package/src/plugins/blog-plugin/index.ts +86 -0
  57. package/src/react-app-env.d.ts +1 -0
  58. package/src/scripts/setupSolidityDocs.ts +67 -0
  59. package/src/scripts/setupTypedoc.ts +112 -0
  60. package/src/scripts/utils.ts +115 -0
  61. package/src/utils/getProjectsByFilter.ts +40 -0
  62. package/static/.nojekyll +0 -0
  63. package/static/audit_reports/20210922_Hashcloak_audit_report.pdf +0 -0
  64. package/static/audit_reports/202220930_Hashcloak_audit_report.pdf +0 -0
  65. package/static/audit_reports/20240223_PSE_Audit_audit_report.pdf +0 -0
  66. package/static/audit_reports/20240731_PSE_Audit_audit_report.pdf +0 -0
  67. package/static/fonts/DM_Sans.woff2 +0 -0
  68. package/static/fonts/Share_Tech_Mono.woff2 +0 -0
  69. package/static/img/box.png +0 -0
  70. package/static/img/box_dark.png +0 -0
  71. package/static/img/chain.png +0 -0
  72. package/static/img/chain_dark.png +0 -0
  73. package/static/img/chart.png +0 -0
  74. package/static/img/chart_dark.png +0 -0
  75. package/static/img/circuits/MACI-Circuits.excalidraw +39652 -0
  76. package/static/img/circuits/calculateTotal.svg +21 -0
  77. package/static/img/circuits/ecdh.svg +21 -0
  78. package/static/img/circuits/messageToCommand.svg +21 -0
  79. package/static/img/circuits/messageValidator.svg +21 -0
  80. package/static/img/circuits/poseidonHasher13.svg +21 -0
  81. package/static/img/circuits/privToPubkey.svg +21 -0
  82. package/static/img/circuits/processMessages.svg +21 -0
  83. package/static/img/circuits/processMessagesInputHasher.svg +21 -0
  84. package/static/img/circuits/processMessages_2_0.svg +21 -0
  85. package/static/img/circuits/processOne.svg +21 -0
  86. package/static/img/circuits/processTopup.svg +21 -0
  87. package/static/img/circuits/processingAfterPollEnds.svg +21 -0
  88. package/static/img/circuits/quinBatchLeavesExists.svg +21 -0
  89. package/static/img/circuits/quinCheckRoot.svg +21 -0
  90. package/static/img/circuits/quinGeneratePathIndices.svg +21 -0
  91. package/static/img/circuits/quinSelector.svg +21 -0
  92. package/static/img/circuits/resultsCommitmentVerifier.svg +21 -0
  93. package/static/img/circuits/splicer.svg +21 -0
  94. package/static/img/circuits/tallyInputHasher.svg +21 -0
  95. package/static/img/circuits/tallyVotes.svg +21 -0
  96. package/static/img/circuits/unpackElement.svg +21 -0
  97. package/static/img/circuits/verifySignature.svg +21 -0
  98. package/static/img/completingAPoll.svg +4 -0
  99. package/static/img/contracts.svg +16 -0
  100. package/static/img/coordinatorComponents.svg +21 -0
  101. package/static/img/favicon.ico +0 -0
  102. package/static/img/generateProofs.svg +4 -0
  103. package/static/img/hero.svg +9 -0
  104. package/static/img/maci-card.png +0 -0
  105. package/static/img/maci-rpgf-design.jpg +0 -0
  106. package/static/img/messageProcessingLocal.svg +21 -0
  107. package/static/img/offlineProcessing.svg +21 -0
  108. package/static/img/pse-logo-round.png +0 -0
  109. package/static/img/tallyCommitments.svg +4 -0
  110. package/static/img/voteTallyingLocal.svg +21 -0
  111. package/tsconfig.json +34 -0
  112. package/versioned_docs/version-v0.x/circuits.md +22 -0
  113. package/versioned_docs/version-v0.x/contract.md +186 -0
  114. package/versioned_docs/version-v0.x/faq.md +67 -0
  115. package/versioned_docs/version-v0.x/introduction.md +119 -0
  116. package/versioned_docs/version-v0.x/quadratic-vote-tallying-circuit.md +138 -0
  117. package/versioned_docs/version-v0.x/state-root-transition-circuit.md +230 -0
  118. package/versioned_docs/version-v1.2/audit.md +160 -0
  119. package/versioned_docs/version-v1.2/ci-pipeline.md +38 -0
  120. package/versioned_docs/version-v1.2/circuits.md +508 -0
  121. package/versioned_docs/version-v1.2/cli.md +689 -0
  122. package/versioned_docs/version-v1.2/contracts.md +445 -0
  123. package/versioned_docs/version-v1.2/contributing/code-of-conduct.md +91 -0
  124. package/versioned_docs/version-v1.2/contributing/contributing.md +129 -0
  125. package/versioned_docs/version-v1.2/coordinator-processing.md +46 -0
  126. package/versioned_docs/version-v1.2/deployment.md +122 -0
  127. package/versioned_docs/version-v1.2/installation.md +175 -0
  128. package/versioned_docs/version-v1.2/integrating.md +200 -0
  129. package/versioned_docs/version-v1.2/introduction.md +94 -0
  130. package/versioned_docs/version-v1.2/key-change.md +182 -0
  131. package/versioned_docs/version-v1.2/overview.md +47 -0
  132. package/versioned_docs/version-v1.2/poll-types.md +68 -0
  133. package/versioned_docs/version-v1.2/primitives.md +216 -0
  134. package/versioned_docs/version-v1.2/project-ideas.md +14 -0
  135. package/versioned_docs/version-v1.2/purpose.md +62 -0
  136. package/versioned_docs/version-v1.2/solidity-docs/MACI.md +345 -0
  137. package/versioned_docs/version-v1.2/solidity-docs/MessageProcessor.md +266 -0
  138. package/versioned_docs/version-v1.2/solidity-docs/MessageProcessorFactory.md +26 -0
  139. package/versioned_docs/version-v1.2/solidity-docs/Poll.md +381 -0
  140. package/versioned_docs/version-v1.2/solidity-docs/PollFactory.md +50 -0
  141. package/versioned_docs/version-v1.2/solidity-docs/SignUpToken.md +27 -0
  142. package/versioned_docs/version-v1.2/solidity-docs/Subsidy.md +218 -0
  143. package/versioned_docs/version-v1.2/solidity-docs/SubsidyFactory.md +27 -0
  144. package/versioned_docs/version-v1.2/solidity-docs/Tally.md +311 -0
  145. package/versioned_docs/version-v1.2/solidity-docs/TallyFactory.md +27 -0
  146. package/versioned_docs/version-v1.2/solidity-docs/TallyNonQv.md +296 -0
  147. package/versioned_docs/version-v1.2/solidity-docs/TallyNonQvFactory.md +27 -0
  148. package/versioned_docs/version-v1.2/solidity-docs/TopupCredit.md +61 -0
  149. package/versioned_docs/version-v1.2/solidity-docs/VkRegistry.md +457 -0
  150. package/versioned_docs/version-v1.2/solidity-docs/benchmarks/HasherBenchmarks.md +44 -0
  151. package/versioned_docs/version-v1.2/solidity-docs/crypto/Hasher.md +125 -0
  152. package/versioned_docs/version-v1.2/solidity-docs/crypto/IVerifier.md +11 -0
  153. package/versioned_docs/version-v1.2/solidity-docs/crypto/MockVerifier.md +17 -0
  154. package/versioned_docs/version-v1.2/solidity-docs/crypto/Pairing.md +85 -0
  155. package/versioned_docs/version-v1.2/solidity-docs/crypto/PoseidonT3.md +9 -0
  156. package/versioned_docs/version-v1.2/solidity-docs/crypto/PoseidonT4.md +9 -0
  157. package/versioned_docs/version-v1.2/solidity-docs/crypto/PoseidonT5.md +9 -0
  158. package/versioned_docs/version-v1.2/solidity-docs/crypto/PoseidonT6.md +9 -0
  159. package/versioned_docs/version-v1.2/solidity-docs/crypto/SnarkCommon.md +16 -0
  160. package/versioned_docs/version-v1.2/solidity-docs/crypto/SnarkConstants.md +40 -0
  161. package/versioned_docs/version-v1.2/solidity-docs/crypto/Verifier.md +61 -0
  162. package/versioned_docs/version-v1.2/solidity-docs/gatekeepers/EASGatekeeper.md +121 -0
  163. package/versioned_docs/version-v1.2/solidity-docs/gatekeepers/FreeForAllSignUpGatekeeper.md +40 -0
  164. package/versioned_docs/version-v1.2/solidity-docs/gatekeepers/SignUpGatekeeper.md +26 -0
  165. package/versioned_docs/version-v1.2/solidity-docs/gatekeepers/SignUpTokenGatekeeper.md +93 -0
  166. package/versioned_docs/version-v1.2/solidity-docs/gatekeepers/hatsGatekeepers/HatsGatekeeperBase.md +79 -0
  167. package/versioned_docs/version-v1.2/solidity-docs/gatekeepers/hatsGatekeepers/HatsGatekeeperMultiple.md +48 -0
  168. package/versioned_docs/version-v1.2/solidity-docs/gatekeepers/hatsGatekeepers/HatsGatekeeperSingle.md +42 -0
  169. package/versioned_docs/version-v1.2/solidity-docs/index.md +4 -0
  170. package/versioned_docs/version-v1.2/solidity-docs/initialVoiceCreditProxy/ConstantInitialVoiceCreditProxy.md +40 -0
  171. package/versioned_docs/version-v1.2/solidity-docs/initialVoiceCreditProxy/InitialVoiceCreditProxy.md +26 -0
  172. package/versioned_docs/version-v1.2/solidity-docs/interfaces/IEAS.md +40 -0
  173. package/versioned_docs/version-v1.2/solidity-docs/interfaces/IHats.md +103 -0
  174. package/versioned_docs/version-v1.2/solidity-docs/interfaces/IMPFactory.md +26 -0
  175. package/versioned_docs/version-v1.2/solidity-docs/interfaces/IMessageProcessor.md +31 -0
  176. package/versioned_docs/version-v1.2/solidity-docs/interfaces/IPoll.md +217 -0
  177. package/versioned_docs/version-v1.2/solidity-docs/interfaces/IPollFactory.md +29 -0
  178. package/versioned_docs/version-v1.2/solidity-docs/interfaces/ITallyFactory.md +28 -0
  179. package/versioned_docs/version-v1.2/solidity-docs/interfaces/ITallySubsidyFactory.md +27 -0
  180. package/versioned_docs/version-v1.2/solidity-docs/interfaces/IVerifier.md +25 -0
  181. package/versioned_docs/version-v1.2/solidity-docs/interfaces/IVkRegistry.md +70 -0
  182. package/versioned_docs/version-v1.2/solidity-docs/mocks/MockHatsProtocol.md +133 -0
  183. package/versioned_docs/version-v1.2/solidity-docs/trees/AccQueue.md +464 -0
  184. package/versioned_docs/version-v1.2/solidity-docs/trees/AccQueueBinary.md +60 -0
  185. package/versioned_docs/version-v1.2/solidity-docs/trees/AccQueueBinary0.md +40 -0
  186. package/versioned_docs/version-v1.2/solidity-docs/trees/AccQueueBinaryMaci.md +34 -0
  187. package/versioned_docs/version-v1.2/solidity-docs/trees/AccQueueQuinary.md +75 -0
  188. package/versioned_docs/version-v1.2/solidity-docs/trees/AccQueueQuinary0.md +40 -0
  189. package/versioned_docs/version-v1.2/solidity-docs/trees/AccQueueQuinaryBlankSl.md +40 -0
  190. package/versioned_docs/version-v1.2/solidity-docs/trees/AccQueueQuinaryMaci.md +40 -0
  191. package/versioned_docs/version-v1.2/solidity-docs/trees/EmptyBallotRoots.md +13 -0
  192. package/versioned_docs/version-v1.2/solidity-docs/utilities/CommonUtilities.md +25 -0
  193. package/versioned_docs/version-v1.2/solidity-docs/utilities/DomainObjs.md +40 -0
  194. package/versioned_docs/version-v1.2/solidity-docs/utilities/Params.md +36 -0
  195. package/versioned_docs/version-v1.2/solidity-docs/utilities/Utilities.md +79 -0
  196. package/versioned_docs/version-v1.2/spec.md +944 -0
  197. package/versioned_docs/version-v1.2/testing-in-detail.md +209 -0
  198. package/versioned_docs/version-v1.2/testing.md +472 -0
  199. package/versioned_docs/version-v1.2/topup.md +43 -0
  200. package/versioned_docs/version-v1.2/troubleshooting.md +51 -0
  201. package/versioned_docs/version-v1.2/trusted-setup.md +76 -0
  202. package/versioned_docs/version-v1.2/typedoc/cli/.nojekyll +1 -0
  203. package/versioned_docs/version-v1.2/typedoc/cli/index.md +15 -0
  204. package/versioned_docs/version-v1.2/typedoc/cli/interfaces/AirdropArgs.md +89 -0
  205. package/versioned_docs/version-v1.2/typedoc/cli/interfaces/DeployArgs.md +154 -0
  206. package/versioned_docs/version-v1.2/typedoc/cli/interfaces/DeployPollArgs.md +154 -0
  207. package/versioned_docs/version-v1.2/typedoc/cli/interfaces/DeployedContracts.md +130 -0
  208. package/versioned_docs/version-v1.2/typedoc/cli/interfaces/GenLocalStateArgs.md +168 -0
  209. package/versioned_docs/version-v1.2/typedoc/cli/interfaces/GenProofsArgs.md +388 -0
  210. package/versioned_docs/version-v1.2/typedoc/cli/interfaces/IGenKeypairArgs.md +37 -0
  211. package/versioned_docs/version-v1.2/typedoc/cli/interfaces/IRegisteredUserArgs.md +63 -0
  212. package/versioned_docs/version-v1.2/typedoc/cli/interfaces/MergeMessagesArgs.md +76 -0
  213. package/versioned_docs/version-v1.2/typedoc/cli/interfaces/MergeSignupsArgs.md +76 -0
  214. package/versioned_docs/version-v1.2/typedoc/cli/interfaces/PollContracts.md +53 -0
  215. package/versioned_docs/version-v1.2/typedoc/cli/interfaces/ProveOnChainArgs.md +128 -0
  216. package/versioned_docs/version-v1.2/typedoc/cli/interfaces/PublishArgs.md +154 -0
  217. package/versioned_docs/version-v1.2/typedoc/cli/interfaces/SignupArgs.md +89 -0
  218. package/versioned_docs/version-v1.2/typedoc/cli/interfaces/SubsidyData.md +73 -0
  219. package/versioned_docs/version-v1.2/typedoc/cli/interfaces/TallyData.md +166 -0
  220. package/versioned_docs/version-v1.2/typedoc/cli/interfaces/TopupArgs.md +89 -0
  221. package/versioned_docs/version-v1.2/typedoc/cli/interfaces/VerifyArgs.md +128 -0
  222. package/versioned_docs/version-v1.2/typedoc/cli/modules.md +556 -0
  223. package/versioned_docs/version-v1.2/typedoc/core/.nojekyll +1 -0
  224. package/versioned_docs/version-v1.2/typedoc/core/classes/MaciState.md +295 -0
  225. package/versioned_docs/version-v1.2/typedoc/core/classes/Poll.md +1098 -0
  226. package/versioned_docs/version-v1.2/typedoc/core/index.md +110 -0
  227. package/versioned_docs/version-v1.2/typedoc/core/interfaces/BatchSizes.md +50 -0
  228. package/versioned_docs/version-v1.2/typedoc/core/interfaces/IJsonMaciState.md +77 -0
  229. package/versioned_docs/version-v1.2/typedoc/core/interfaces/IProcessMessagesCircuitInputs.md +242 -0
  230. package/versioned_docs/version-v1.2/typedoc/core/interfaces/ISubsidyCircuitInputs.md +198 -0
  231. package/versioned_docs/version-v1.2/typedoc/core/interfaces/ITallyCircuitInputs.md +231 -0
  232. package/versioned_docs/version-v1.2/typedoc/core/interfaces/MaxValues.md +37 -0
  233. package/versioned_docs/version-v1.2/typedoc/core/interfaces/TreeDepths.md +63 -0
  234. package/versioned_docs/version-v1.2/typedoc/core/modules.md +289 -0
  235. package/versioned_docs/version-v1.2/typedoc/crypto/.nojekyll +1 -0
  236. package/versioned_docs/version-v1.2/typedoc/crypto/classes/AccQueue.md +770 -0
  237. package/versioned_docs/version-v1.2/typedoc/crypto/classes/G1Point.md +115 -0
  238. package/versioned_docs/version-v1.2/typedoc/crypto/classes/G2Point.md +140 -0
  239. package/versioned_docs/version-v1.2/typedoc/crypto/classes/IncrementalQuinTree.md +470 -0
  240. package/versioned_docs/version-v1.2/typedoc/crypto/index.md +44 -0
  241. package/versioned_docs/version-v1.2/typedoc/crypto/interfaces/Keypair.md +33 -0
  242. package/versioned_docs/version-v1.2/typedoc/crypto/interfaces/PoseidonFuncs.md +115 -0
  243. package/versioned_docs/version-v1.2/typedoc/crypto/interfaces/Queue.md +33 -0
  244. package/versioned_docs/version-v1.2/typedoc/crypto/interfaces/Signature.md +37 -0
  245. package/versioned_docs/version-v1.2/typedoc/crypto/modules.md +913 -0
  246. package/versioned_docs/version-v1.2/typedoc/domainobjs/.nojekyll +1 -0
  247. package/versioned_docs/version-v1.2/typedoc/domainobjs/classes/Ballot.md +274 -0
  248. package/versioned_docs/version-v1.2/typedoc/domainobjs/classes/Keypair.md +181 -0
  249. package/versioned_docs/version-v1.2/typedoc/domainobjs/classes/Message.md +244 -0
  250. package/versioned_docs/version-v1.2/typedoc/domainobjs/classes/PCommand.md +409 -0
  251. package/versioned_docs/version-v1.2/typedoc/domainobjs/classes/PrivKey.md +206 -0
  252. package/versioned_docs/version-v1.2/typedoc/domainobjs/classes/PubKey.md +289 -0
  253. package/versioned_docs/version-v1.2/typedoc/domainobjs/classes/StateLeaf.md +340 -0
  254. package/versioned_docs/version-v1.2/typedoc/domainobjs/classes/TCommand.md +200 -0
  255. package/versioned_docs/version-v1.2/typedoc/domainobjs/classes/VerifyingKey.md +240 -0
  256. package/versioned_docs/version-v1.2/typedoc/domainobjs/index.md +81 -0
  257. package/versioned_docs/version-v1.2/typedoc/domainobjs/interfaces/ICommand.md +104 -0
  258. package/versioned_docs/version-v1.2/typedoc/domainobjs/interfaces/IG1ContractParams.md +31 -0
  259. package/versioned_docs/version-v1.2/typedoc/domainobjs/interfaces/IG2ContractParams.md +31 -0
  260. package/versioned_docs/version-v1.2/typedoc/domainobjs/interfaces/IJsonBallot.md +42 -0
  261. package/versioned_docs/version-v1.2/typedoc/domainobjs/interfaces/IJsonCommand.md +32 -0
  262. package/versioned_docs/version-v1.2/typedoc/domainobjs/interfaces/IJsonKeyPair.md +31 -0
  263. package/versioned_docs/version-v1.2/typedoc/domainobjs/interfaces/IJsonPCommand.md +111 -0
  264. package/versioned_docs/version-v1.2/typedoc/domainobjs/interfaces/IJsonStateLeaf.md +42 -0
  265. package/versioned_docs/version-v1.2/typedoc/domainobjs/interfaces/IJsonTCommand.md +67 -0
  266. package/versioned_docs/version-v1.2/typedoc/domainobjs/interfaces/IMessageContractParams.md +31 -0
  267. package/versioned_docs/version-v1.2/typedoc/domainobjs/interfaces/IStateLeaf.md +39 -0
  268. package/versioned_docs/version-v1.2/typedoc/domainobjs/interfaces/IStateLeafContractParams.md +42 -0
  269. package/versioned_docs/version-v1.2/typedoc/domainobjs/interfaces/IVkContractParams.md +64 -0
  270. package/versioned_docs/version-v1.2/typedoc/domainobjs/interfaces/IVkObjectParams.md +108 -0
  271. package/versioned_docs/version-v1.2/typedoc/domainobjs/interfaces/Proof.md +46 -0
  272. package/versioned_docs/version-v1.2/typedoc/domainobjs/interfaces/VoteOptionTreeLeaf.md +24 -0
  273. package/versioned_docs/version-v1.2/typedoc/domainobjs/modules.md +110 -0
  274. package/versioned_docs/version-v1.2/typedoc/index.md +4 -0
  275. package/versioned_docs/version-v1.2/versioning.md +94 -0
  276. package/versioned_docs/version-v1.2/workflow.md +142 -0
  277. package/versioned_docs/version-v2.x/case-studies.md +35 -0
  278. package/versioned_docs/version-v2.x/contributing/_category_.json +4 -0
  279. package/versioned_docs/version-v2.x/contributing/code-of-conduct.md +92 -0
  280. package/versioned_docs/version-v2.x/contributing/contributing.md +149 -0
  281. package/versioned_docs/version-v2.x/contributing/project-ideas.md +78 -0
  282. package/versioned_docs/version-v2.x/core-concepts/_category_.json +4 -0
  283. package/versioned_docs/version-v2.x/core-concepts/ballot.md +19 -0
  284. package/versioned_docs/version-v2.x/core-concepts/coordinator-processing.md +46 -0
  285. package/versioned_docs/version-v2.x/core-concepts/hashing-and-encryption.md +45 -0
  286. package/versioned_docs/version-v2.x/core-concepts/key-change.md +179 -0
  287. package/versioned_docs/version-v2.x/core-concepts/maci-keys.md +84 -0
  288. package/versioned_docs/version-v2.x/core-concepts/maci-messages.md +44 -0
  289. package/versioned_docs/version-v2.x/core-concepts/merkle-trees.md +23 -0
  290. package/versioned_docs/version-v2.x/core-concepts/poll-types.md +106 -0
  291. package/versioned_docs/version-v2.x/core-concepts/spec.md +883 -0
  292. package/versioned_docs/version-v2.x/core-concepts/state-leaf.md +42 -0
  293. package/versioned_docs/version-v2.x/core-concepts/workflow.md +142 -0
  294. package/versioned_docs/version-v2.x/getting-started.md +313 -0
  295. package/versioned_docs/version-v2.x/guides/_category_.json +4 -0
  296. package/versioned_docs/version-v2.x/guides/compile-circuits.md +163 -0
  297. package/versioned_docs/version-v2.x/guides/frontend.md +99 -0
  298. package/versioned_docs/version-v2.x/guides/integrating.md +73 -0
  299. package/versioned_docs/version-v2.x/guides/maciWrapper.md +173 -0
  300. package/versioned_docs/version-v2.x/guides/subgraph.md +79 -0
  301. package/versioned_docs/version-v2.x/guides/testing/_category_.json +4 -0
  302. package/versioned_docs/version-v2.x/guides/testing/testing-in-detail.md +203 -0
  303. package/versioned_docs/version-v2.x/guides/testing/testing.md +163 -0
  304. package/versioned_docs/version-v2.x/guides/troubleshooting.md +161 -0
  305. package/versioned_docs/version-v2.x/introduction.md +146 -0
  306. package/versioned_docs/version-v2.x/processes/_category_.json +4 -0
  307. package/versioned_docs/version-v2.x/processes/ci-pipeline.md +38 -0
  308. package/versioned_docs/version-v2.x/processes/versioning.md +94 -0
  309. package/versioned_docs/version-v2.x/resources.md +33 -0
  310. package/versioned_docs/version-v2.x/security/_category_.json +4 -0
  311. package/versioned_docs/version-v2.x/security/audit.md +167 -0
  312. package/versioned_docs/version-v2.x/security/trusted-setup.md +166 -0
  313. package/versioned_docs/version-v2.x/supported-networks/_category_.json +4 -0
  314. package/versioned_docs/version-v2.x/supported-networks/deployed-contracts.md +1108 -0
  315. package/versioned_docs/version-v2.x/supported-networks/supported-networks.md +47 -0
  316. package/versioned_docs/version-v2.x/technical-references/_category_.json +4 -0
  317. package/versioned_docs/version-v2.x/technical-references/smart-contracts/AccQueue.md +21 -0
  318. package/versioned_docs/version-v2.x/technical-references/smart-contracts/Gatekeepers.md +40 -0
  319. package/versioned_docs/version-v2.x/technical-references/smart-contracts/MACI.md +152 -0
  320. package/versioned_docs/version-v2.x/technical-references/smart-contracts/MessageProcessor.md +13 -0
  321. package/versioned_docs/version-v2.x/technical-references/smart-contracts/Params.md +32 -0
  322. package/versioned_docs/version-v2.x/technical-references/smart-contracts/Poll.md +104 -0
  323. package/versioned_docs/version-v2.x/technical-references/smart-contracts/PollFactory.md +43 -0
  324. package/versioned_docs/version-v2.x/technical-references/smart-contracts/Tally.md +45 -0
  325. package/versioned_docs/version-v2.x/technical-references/smart-contracts/VkRegistry.md +57 -0
  326. package/versioned_docs/version-v2.x/technical-references/smart-contracts/VoiceCreditProxy.md +18 -0
  327. package/versioned_docs/version-v2.x/technical-references/smart-contracts/_category_.json +8 -0
  328. package/versioned_docs/version-v2.x/technical-references/technical-references.md +47 -0
  329. package/versioned_docs/version-v2.x/technical-references/typescript-code/_category_.json +4 -0
  330. package/versioned_docs/version-v2.x/technical-references/typescript-code/cli.md +699 -0
  331. package/versioned_docs/version-v2.x/technical-references/zk-snark-circuits/_category_.json +4 -0
  332. package/versioned_docs/version-v2.x/technical-references/zk-snark-circuits/processMessages.md +107 -0
  333. package/versioned_docs/version-v2.x/technical-references/zk-snark-circuits/setup.md +101 -0
  334. package/versioned_docs/version-v2.x/technical-references/zk-snark-circuits/tallyVotes.md +79 -0
  335. package/versioned_docs/version-v2.x/technical-references/zk-snark-circuits/utilities.md +131 -0
  336. package/versioned_docs/version-v2.x/technical-references/zk-snark-circuits/zk-snark-circuits.md +37 -0
  337. package/versioned_docs/version-v2.x/use-cases/_category_.json +4 -0
  338. package/versioned_docs/version-v2.x/use-cases/governance.md +18 -0
  339. package/versioned_docs/version-v2.x/use-cases/polling.md +10 -0
  340. package/versioned_docs/version-v2.x/use-cases/public-goods.md +65 -0
  341. package/versioned_docs/version-v3.x/case-studies.md +35 -0
  342. package/versioned_docs/version-v3.x/contributing/_category_.json +4 -0
  343. package/versioned_docs/version-v3.x/contributing/code-of-conduct.md +92 -0
  344. package/versioned_docs/version-v3.x/contributing/contributing.md +149 -0
  345. package/versioned_docs/version-v3.x/contributing/project-ideas.md +78 -0
  346. package/versioned_docs/version-v3.x/core-concepts/_category_.json +4 -0
  347. package/versioned_docs/version-v3.x/core-concepts/ballot.md +19 -0
  348. package/versioned_docs/version-v3.x/core-concepts/coordinator-processing.md +46 -0
  349. package/versioned_docs/version-v3.x/core-concepts/hashing-and-encryption.md +45 -0
  350. package/versioned_docs/version-v3.x/core-concepts/key-change.md +179 -0
  351. package/versioned_docs/version-v3.x/core-concepts/maci-keys.md +84 -0
  352. package/versioned_docs/version-v3.x/core-concepts/maci-messages.md +44 -0
  353. package/versioned_docs/version-v3.x/core-concepts/merkle-trees.md +16 -0
  354. package/versioned_docs/version-v3.x/core-concepts/poll-types.md +58 -0
  355. package/versioned_docs/version-v3.x/core-concepts/polls.md +81 -0
  356. package/versioned_docs/version-v3.x/core-concepts/spec.md +883 -0
  357. package/versioned_docs/version-v3.x/core-concepts/state-leaf.md +42 -0
  358. package/versioned_docs/version-v3.x/core-concepts/workflow.md +143 -0
  359. package/versioned_docs/version-v3.x/guides/_category_.json +4 -0
  360. package/versioned_docs/version-v3.x/guides/compile-circuits.md +175 -0
  361. package/versioned_docs/version-v3.x/guides/integrating.md +137 -0
  362. package/versioned_docs/version-v3.x/guides/subgraph.md +79 -0
  363. package/versioned_docs/version-v3.x/guides/testing/_category_.json +4 -0
  364. package/versioned_docs/version-v3.x/guides/testing/testing-in-detail.md +191 -0
  365. package/versioned_docs/version-v3.x/guides/testing/testing-introduction.md +158 -0
  366. package/versioned_docs/version-v3.x/guides/troubleshooting.md +161 -0
  367. package/versioned_docs/version-v3.x/introduction.md +153 -0
  368. package/versioned_docs/version-v3.x/processes/_category_.json +4 -0
  369. package/versioned_docs/version-v3.x/processes/ci-pipeline.md +38 -0
  370. package/versioned_docs/version-v3.x/processes/versioning.md +94 -0
  371. package/versioned_docs/version-v3.x/quick-start.md +318 -0
  372. package/versioned_docs/version-v3.x/resources.md +33 -0
  373. package/versioned_docs/version-v3.x/security/_category_.json +4 -0
  374. package/versioned_docs/version-v3.x/security/audit.md +167 -0
  375. package/versioned_docs/version-v3.x/security/trusted-setup.md +172 -0
  376. package/versioned_docs/version-v3.x/supported-networks/_category_.json +4 -0
  377. package/versioned_docs/version-v3.x/supported-networks/deployed-contracts.md +112 -0
  378. package/versioned_docs/version-v3.x/supported-networks/supported-networks.md +53 -0
  379. package/versioned_docs/version-v3.x/technical-references/_category_.json +4 -0
  380. package/versioned_docs/version-v3.x/technical-references/smart-contracts/MACI.md +160 -0
  381. package/versioned_docs/version-v3.x/technical-references/smart-contracts/MessageProcessor.md +13 -0
  382. package/versioned_docs/version-v3.x/technical-references/smart-contracts/Params.md +33 -0
  383. package/versioned_docs/version-v3.x/technical-references/smart-contracts/Policies.md +39 -0
  384. package/versioned_docs/version-v3.x/technical-references/smart-contracts/Poll.md +170 -0
  385. package/versioned_docs/version-v3.x/technical-references/smart-contracts/PollFactory.md +33 -0
  386. package/versioned_docs/version-v3.x/technical-references/smart-contracts/Tally.md +43 -0
  387. package/versioned_docs/version-v3.x/technical-references/smart-contracts/VkRegistry.md +62 -0
  388. package/versioned_docs/version-v3.x/technical-references/smart-contracts/VoiceCreditProxy.md +18 -0
  389. package/versioned_docs/version-v3.x/technical-references/smart-contracts/_category_.json +8 -0
  390. package/versioned_docs/version-v3.x/technical-references/technical-references.md +48 -0
  391. package/versioned_docs/version-v3.x/technical-references/zk-snark-circuits/_category_.json +4 -0
  392. package/versioned_docs/version-v3.x/technical-references/zk-snark-circuits/joinPoll.md +53 -0
  393. package/versioned_docs/version-v3.x/technical-references/zk-snark-circuits/processMessages.md +106 -0
  394. package/versioned_docs/version-v3.x/technical-references/zk-snark-circuits/setup.md +96 -0
  395. package/versioned_docs/version-v3.x/technical-references/zk-snark-circuits/tallyVotes.md +79 -0
  396. package/versioned_docs/version-v3.x/technical-references/zk-snark-circuits/utilities.md +131 -0
  397. package/versioned_docs/version-v3.x/technical-references/zk-snark-circuits/zk-snark-circuits.md +42 -0
  398. package/versioned_docs/version-v3.x/use-cases/_category_.json +4 -0
  399. package/versioned_docs/version-v3.x/use-cases/governance.md +18 -0
  400. package/versioned_docs/version-v3.x/use-cases/polling.md +10 -0
  401. package/versioned_docs/version-v3.x/use-cases/public-goods.md +65 -0
  402. package/versioned_sidebars/version-v0.x-sidebars.json +8 -0
  403. package/versioned_sidebars/version-v1.2-sidebars.json +8 -0
  404. package/versioned_sidebars/version-v2.x-sidebars.json +8 -0
  405. package/versioned_sidebars/version-v3.x-sidebars.json +8 -0
  406. package/versions.json +1 -0
@@ -0,0 +1,200 @@
1
+ ---
2
+ title: TCommand
3
+ sidebar_label: TCommand
4
+ ---
5
+
6
+ **`Notice`**
7
+
8
+ Command for submitting a topup request
9
+
10
+ ## Implements
11
+
12
+ - [`ICommand`](../interfaces/ICommand.md)
13
+
14
+ ## Table of contents
15
+
16
+ ### Constructors
17
+
18
+ - [constructor](TCommand.md#constructor)
19
+
20
+ ### Properties
21
+
22
+ - [amount](TCommand.md#amount)
23
+ - [cmdType](TCommand.md#cmdtype)
24
+ - [pollId](TCommand.md#pollid)
25
+ - [stateIndex](TCommand.md#stateindex)
26
+
27
+ ### Methods
28
+
29
+ - [copy](TCommand.md#copy)
30
+ - [equals](TCommand.md#equals)
31
+ - [toJSON](TCommand.md#tojson)
32
+ - [fromJSON](TCommand.md#fromjson)
33
+
34
+ ## Constructors
35
+
36
+ ### constructor
37
+
38
+ • **new TCommand**(`stateIndex`, `amount`, `pollId`): [`TCommand`](TCommand.md)
39
+
40
+ Create a new TCommand
41
+
42
+ #### Parameters
43
+
44
+ | Name | Type | Description |
45
+ | :----------- | :------- | :-------------------------- |
46
+ | `stateIndex` | `bigint` | the state index of the user |
47
+ | `amount` | `bigint` | the amount of voice credits |
48
+ | `pollId` | `bigint` | the poll ID |
49
+
50
+ #### Returns
51
+
52
+ [`TCommand`](TCommand.md)
53
+
54
+ #### Defined in
55
+
56
+ [commands/TCommand.ts:21](https://github.com/privacy-scaling-explorations/maci/blob/6a905de08/domainobjs/ts/commands/TCommand.ts#L21)
57
+
58
+ ## Properties
59
+
60
+ ### amount
61
+
62
+ • **amount**: `bigint`
63
+
64
+ #### Defined in
65
+
66
+ [commands/TCommand.ts:11](https://github.com/privacy-scaling-explorations/maci/blob/6a905de08/domainobjs/ts/commands/TCommand.ts#L11)
67
+
68
+ ---
69
+
70
+ ### cmdType
71
+
72
+ • **cmdType**: `bigint`
73
+
74
+ #### Implementation of
75
+
76
+ [ICommand](../interfaces/ICommand.md).[cmdType](../interfaces/ICommand.md#cmdtype)
77
+
78
+ #### Defined in
79
+
80
+ [commands/TCommand.ts:7](https://github.com/privacy-scaling-explorations/maci/blob/6a905de08/domainobjs/ts/commands/TCommand.ts#L7)
81
+
82
+ ---
83
+
84
+ ### pollId
85
+
86
+ • **pollId**: `bigint`
87
+
88
+ #### Defined in
89
+
90
+ [commands/TCommand.ts:13](https://github.com/privacy-scaling-explorations/maci/blob/6a905de08/domainobjs/ts/commands/TCommand.ts#L13)
91
+
92
+ ---
93
+
94
+ ### stateIndex
95
+
96
+ • **stateIndex**: `bigint`
97
+
98
+ #### Defined in
99
+
100
+ [commands/TCommand.ts:9](https://github.com/privacy-scaling-explorations/maci/blob/6a905de08/domainobjs/ts/commands/TCommand.ts#L9)
101
+
102
+ ## Methods
103
+
104
+ ### copy
105
+
106
+ ▸ **copy**\<`T`\>(): `T`
107
+
108
+ Create a deep clone of this TCommand
109
+
110
+ #### Type parameters
111
+
112
+ | Name | Type |
113
+ | :--- | :-------------------------------- |
114
+ | `T` | extends [`TCommand`](TCommand.md) |
115
+
116
+ #### Returns
117
+
118
+ `T`
119
+
120
+ a copy of the TCommand
121
+
122
+ #### Implementation of
123
+
124
+ [ICommand](../interfaces/ICommand.md).[copy](../interfaces/ICommand.md#copy)
125
+
126
+ #### Defined in
127
+
128
+ [commands/TCommand.ts:32](https://github.com/privacy-scaling-explorations/maci/blob/6a905de08/domainobjs/ts/commands/TCommand.ts#L32)
129
+
130
+ ---
131
+
132
+ ### equals
133
+
134
+ ▸ **equals**(`command`): `boolean`
135
+
136
+ Check whether this command has deep equivalence to another command
137
+
138
+ #### Parameters
139
+
140
+ | Name | Type | Description |
141
+ | :-------- | :------------------------ | :-------------------------- |
142
+ | `command` | [`TCommand`](TCommand.md) | the command to compare with |
143
+
144
+ #### Returns
145
+
146
+ `boolean`
147
+
148
+ whether they are equal or not
149
+
150
+ #### Implementation of
151
+
152
+ [ICommand](../interfaces/ICommand.md).[equals](../interfaces/ICommand.md#equals)
153
+
154
+ #### Defined in
155
+
156
+ [commands/TCommand.ts:39](https://github.com/privacy-scaling-explorations/maci/blob/6a905de08/domainobjs/ts/commands/TCommand.ts#L39)
157
+
158
+ ---
159
+
160
+ ### toJSON
161
+
162
+ ▸ **toJSON**(): [`IJsonTCommand`](../interfaces/IJsonTCommand.md)
163
+
164
+ Serialize into a JSON object
165
+
166
+ #### Returns
167
+
168
+ [`IJsonTCommand`](../interfaces/IJsonTCommand.md)
169
+
170
+ #### Implementation of
171
+
172
+ [ICommand](../interfaces/ICommand.md).[toJSON](../interfaces/ICommand.md#tojson)
173
+
174
+ #### Defined in
175
+
176
+ [commands/TCommand.ts:48](https://github.com/privacy-scaling-explorations/maci/blob/6a905de08/domainobjs/ts/commands/TCommand.ts#L48)
177
+
178
+ ---
179
+
180
+ ### fromJSON
181
+
182
+ ▸ **fromJSON**(`json`): [`TCommand`](TCommand.md)
183
+
184
+ Deserialize into a TCommand object
185
+
186
+ #### Parameters
187
+
188
+ | Name | Type | Description |
189
+ | :----- | :------------------------------------------------ | :---------------------- |
190
+ | `json` | [`IJsonTCommand`](../interfaces/IJsonTCommand.md) | the json representation |
191
+
192
+ #### Returns
193
+
194
+ [`TCommand`](TCommand.md)
195
+
196
+ the TCommand instance
197
+
198
+ #### Defined in
199
+
200
+ [commands/TCommand.ts:62](https://github.com/privacy-scaling-explorations/maci/blob/6a905de08/domainobjs/ts/commands/TCommand.ts#L62)
@@ -0,0 +1,240 @@
1
+ ---
2
+ title: VerifyingKey
3
+ sidebar_label: VerifyingKey
4
+ ---
5
+
6
+ **`Notice`**
7
+
8
+ A TS Class representing a zk-SNARK VerifyingKey
9
+
10
+ ## Table of contents
11
+
12
+ ### Constructors
13
+
14
+ - [constructor](VerifyingKey.md#constructor)
15
+
16
+ ### Properties
17
+
18
+ - [alpha1](VerifyingKey.md#alpha1)
19
+ - [beta2](VerifyingKey.md#beta2)
20
+ - [delta2](VerifyingKey.md#delta2)
21
+ - [gamma2](VerifyingKey.md#gamma2)
22
+ - [ic](VerifyingKey.md#ic)
23
+
24
+ ### Methods
25
+
26
+ - [asContractParam](VerifyingKey.md#ascontractparam)
27
+ - [copy](VerifyingKey.md#copy)
28
+ - [equals](VerifyingKey.md#equals)
29
+ - [fromContract](VerifyingKey.md#fromcontract)
30
+ - [fromJSON](VerifyingKey.md#fromjson)
31
+ - [fromObj](VerifyingKey.md#fromobj)
32
+
33
+ ## Constructors
34
+
35
+ ### constructor
36
+
37
+ • **new VerifyingKey**(`alpha1`, `beta2`, `gamma2`, `delta2`, `ic`): [`VerifyingKey`](VerifyingKey.md)
38
+
39
+ Generate a new VerifyingKey
40
+
41
+ #### Parameters
42
+
43
+ | Name | Type | Description |
44
+ | :------- | :---------- | :--------------- |
45
+ | `alpha1` | `G1Point` | the alpha1 point |
46
+ | `beta2` | `G2Point` | the beta2 point |
47
+ | `gamma2` | `G2Point` | the gamma2 point |
48
+ | `delta2` | `G2Point` | the delta2 point |
49
+ | `ic` | `G1Point`[] | the ic points |
50
+
51
+ #### Returns
52
+
53
+ [`VerifyingKey`](VerifyingKey.md)
54
+
55
+ #### Defined in
56
+
57
+ [verifyingKey.ts:27](https://github.com/privacy-scaling-explorations/maci/blob/6a905de08/domainobjs/ts/verifyingKey.ts#L27)
58
+
59
+ ## Properties
60
+
61
+ ### alpha1
62
+
63
+ • **alpha1**: `G1Point`
64
+
65
+ #### Defined in
66
+
67
+ [verifyingKey.ts:9](https://github.com/privacy-scaling-explorations/maci/blob/6a905de08/domainobjs/ts/verifyingKey.ts#L9)
68
+
69
+ ---
70
+
71
+ ### beta2
72
+
73
+ • **beta2**: `G2Point`
74
+
75
+ #### Defined in
76
+
77
+ [verifyingKey.ts:11](https://github.com/privacy-scaling-explorations/maci/blob/6a905de08/domainobjs/ts/verifyingKey.ts#L11)
78
+
79
+ ---
80
+
81
+ ### delta2
82
+
83
+ • **delta2**: `G2Point`
84
+
85
+ #### Defined in
86
+
87
+ [verifyingKey.ts:15](https://github.com/privacy-scaling-explorations/maci/blob/6a905de08/domainobjs/ts/verifyingKey.ts#L15)
88
+
89
+ ---
90
+
91
+ ### gamma2
92
+
93
+ • **gamma2**: `G2Point`
94
+
95
+ #### Defined in
96
+
97
+ [verifyingKey.ts:13](https://github.com/privacy-scaling-explorations/maci/blob/6a905de08/domainobjs/ts/verifyingKey.ts#L13)
98
+
99
+ ---
100
+
101
+ ### ic
102
+
103
+ • **ic**: `G1Point`[]
104
+
105
+ #### Defined in
106
+
107
+ [verifyingKey.ts:17](https://github.com/privacy-scaling-explorations/maci/blob/6a905de08/domainobjs/ts/verifyingKey.ts#L17)
108
+
109
+ ## Methods
110
+
111
+ ### asContractParam
112
+
113
+ ▸ **asContractParam**(): [`IVkContractParams`](../interfaces/IVkContractParams.md)
114
+
115
+ Return this as an object which can be passed
116
+ to the smart contract
117
+
118
+ #### Returns
119
+
120
+ [`IVkContractParams`](../interfaces/IVkContractParams.md)
121
+
122
+ the object representation of this
123
+
124
+ #### Defined in
125
+
126
+ [verifyingKey.ts:40](https://github.com/privacy-scaling-explorations/maci/blob/6a905de08/domainobjs/ts/verifyingKey.ts#L40)
127
+
128
+ ---
129
+
130
+ ### copy
131
+
132
+ ▸ **copy**(): [`VerifyingKey`](VerifyingKey.md)
133
+
134
+ Produce a copy of this verifying key
135
+
136
+ #### Returns
137
+
138
+ [`VerifyingKey`](VerifyingKey.md)
139
+
140
+ the copy
141
+
142
+ #### Defined in
143
+
144
+ [verifyingKey.ts:94](https://github.com/privacy-scaling-explorations/maci/blob/6a905de08/domainobjs/ts/verifyingKey.ts#L94)
145
+
146
+ ---
147
+
148
+ ### equals
149
+
150
+ ▸ **equals**(`vk`): `boolean`
151
+
152
+ Check whether this is equal to another verifying key
153
+
154
+ #### Parameters
155
+
156
+ | Name | Type | Description |
157
+ | :--- | :-------------------------------- | :---------------------- |
158
+ | `vk` | [`VerifyingKey`](VerifyingKey.md) | the other verifying key |
159
+
160
+ #### Returns
161
+
162
+ `boolean`
163
+
164
+ whether this is equal to the other verifying key
165
+
166
+ #### Defined in
167
+
168
+ [verifyingKey.ts:73](https://github.com/privacy-scaling-explorations/maci/blob/6a905de08/domainobjs/ts/verifyingKey.ts#L73)
169
+
170
+ ---
171
+
172
+ ### fromContract
173
+
174
+ ▸ **fromContract**(`data`): [`VerifyingKey`](VerifyingKey.md)
175
+
176
+ Create a new verifying key from a contract representation of the VK
177
+
178
+ #### Parameters
179
+
180
+ | Name | Type | Description |
181
+ | :----- | :-------------------------------------------------------- | :------------------------ |
182
+ | `data` | [`IVkContractParams`](../interfaces/IVkContractParams.md) | the object representation |
183
+
184
+ #### Returns
185
+
186
+ [`VerifyingKey`](VerifyingKey.md)
187
+
188
+ a new VerifyingKey
189
+
190
+ #### Defined in
191
+
192
+ [verifyingKey.ts:55](https://github.com/privacy-scaling-explorations/maci/blob/6a905de08/domainobjs/ts/verifyingKey.ts#L55)
193
+
194
+ ---
195
+
196
+ ### fromJSON
197
+
198
+ ▸ **fromJSON**(`json`): [`VerifyingKey`](VerifyingKey.md)
199
+
200
+ Deserialize into a VerifyingKey instance
201
+
202
+ #### Parameters
203
+
204
+ | Name | Type | Description |
205
+ | :----- | :------- | :---------------------- |
206
+ | `json` | `string` | the JSON representation |
207
+
208
+ #### Returns
209
+
210
+ [`VerifyingKey`](VerifyingKey.md)
211
+
212
+ the VerifyingKey
213
+
214
+ #### Defined in
215
+
216
+ [verifyingKey.ts:115](https://github.com/privacy-scaling-explorations/maci/blob/6a905de08/domainobjs/ts/verifyingKey.ts#L115)
217
+
218
+ ---
219
+
220
+ ### fromObj
221
+
222
+ ▸ **fromObj**(`data`): [`VerifyingKey`](VerifyingKey.md)
223
+
224
+ Convert an object representation to a VerifyingKey
225
+
226
+ #### Parameters
227
+
228
+ | Name | Type | Description |
229
+ | :----- | :---------------------------------------------------- | :------------------------ |
230
+ | `data` | [`IVkObjectParams`](../interfaces/IVkObjectParams.md) | the object representation |
231
+
232
+ #### Returns
233
+
234
+ [`VerifyingKey`](VerifyingKey.md)
235
+
236
+ the VerifyingKey
237
+
238
+ #### Defined in
239
+
240
+ [verifyingKey.ts:125](https://github.com/privacy-scaling-explorations/maci/blob/6a905de08/domainobjs/ts/verifyingKey.ts#L125)
@@ -0,0 +1,81 @@
1
+ ---
2
+ title: Domainobjs
3
+ sidebar_label: Domainobjs
4
+ ---
5
+
6
+ [![NPM Package][domainobjs-npm-badge]][domainobjs-npm-link]
7
+ [![Actions Status][domainobjs-actions-badge]][domainobjs-actions-link]
8
+
9
+ This module implements domain objects. A domain object is:
10
+
11
+ > a logical container of purely domain information, usually representing a
12
+ > logical entity in the problem domain space
13
+
14
+ https://wiki.c2.com/?DomainObject
15
+
16
+ In effect, domain objects are representations of objects shared between other
17
+ modules in this codebase. They also encapsulate helper functions which make it
18
+ easy to use them with said modules.
19
+
20
+ ## `PrivKey`
21
+
22
+ A private key. Provides helper functions to do with passing it into a circuit
23
+ in the right format, serialisation and deserialisation, and deep copying.
24
+
25
+ This is a MACI private key, which is not to be confused with an Ethereum private key.
26
+ A serialized MACI private key is prefixed by 'macisk.'
27
+ A raw MACI private key can be thought as a point on the baby jubjub curve.
28
+
29
+ ## `PubKey`
30
+
31
+ A public key. Provides helper functions to do with passing it into a contract
32
+ function or circuit in the right format, hashing, serialisation and
33
+ deserialisation, and deep copying.
34
+
35
+ This is a MACI public key, which is not to be confused with an Ethereum public key. A serialized MACI public key is prefixed by 'macipk.' A raw MACI public key can be thought as a pair of BigIntegers (x, y) representing a point on the baby jubjub curve.
36
+
37
+ ## `Keypair`
38
+
39
+ Encapsulates a `PrivKey` and `PubKey`. Also provides `genEcdhSharedKey` which
40
+ generates an ECDH shared key from a public key and a private key.
41
+
42
+ This is a MACI keypair, which is not to be confused with an Ethereum keypair.
43
+ A MACI keypair is comprised of a MACI public key and a MACI private key
44
+
45
+ ## `Command`
46
+
47
+ The `Command` domain object represents a request by a user to cast a vote
48
+ and/or change one's public key.
49
+
50
+ ## `Message`
51
+
52
+ The `Message` domain object is an encrypted `Command` and signature. That is, a
53
+ `Message` is a `Ciphertext` (defined in `maci-crypto`)
54
+ which is the encrypted `Command` and its `Signature` (also defined in
55
+ `maci-crypto`). In other terms:
56
+
57
+ ```
58
+ Message = Encrypt([Command, Signature], Key)
59
+ ```
60
+
61
+ ## `Ballot`
62
+
63
+ Represents a User's votes in a Poll, as well as their next valid nonce.
64
+
65
+ ## `StateLeaf`
66
+
67
+ Represents a leaf in the state tree, which maps public keys to voice credit
68
+ balances, as well as the timestamp at which it was inserted.
69
+
70
+ ## `VerifyingKey`
71
+
72
+ Encapsulates a Groth16 zk-SNARK verifying key.
73
+
74
+ ## `Proof`
75
+
76
+ Encapsulates a Groth16 zk-SNARK proof.
77
+
78
+ [domainobjs-npm-badge]: https://img.shields.io/npm/v/maci-domainobjs.svg
79
+ [domainobjs-npm-link]: https://www.npmjs.com/package/maci-domainobjs
80
+ [domainobjs-actions-badge]: https://github.com/privacy-scaling-explorations/maci/actions/workflows/domainobjs-build.yml/badge.svg
81
+ [domainobjs-actions-link]: https://github.com/privacy-scaling-explorations/maci/actions?query=workflow%3Adomainobjs
@@ -0,0 +1,104 @@
1
+ ---
2
+ title: ICommand
3
+ sidebar_label: ICommand
4
+ ---
5
+
6
+ **`Notice`**
7
+
8
+ A parent interface for all the commands
9
+
10
+ ## Implemented by
11
+
12
+ - [`PCommand`](../classes/PCommand.md)
13
+ - [`TCommand`](../classes/TCommand.md)
14
+
15
+ ## Table of contents
16
+
17
+ ### Properties
18
+
19
+ - [cmdType](ICommand.md#cmdtype)
20
+ - [copy](ICommand.md#copy)
21
+ - [equals](ICommand.md#equals)
22
+ - [toJSON](ICommand.md#tojson)
23
+
24
+ ## Properties
25
+
26
+ ### cmdType
27
+
28
+ • **cmdType**: `bigint`
29
+
30
+ #### Defined in
31
+
32
+ [commands/types.ts:5](https://github.com/privacy-scaling-explorations/maci/blob/6a905de08/domainobjs/ts/commands/types.ts#L5)
33
+
34
+ ---
35
+
36
+ ### copy
37
+
38
+ • **copy**: \<T\>() => `T`
39
+
40
+ #### Type declaration
41
+
42
+ ▸ \<`T`\>(): `T`
43
+
44
+ ##### Type parameters
45
+
46
+ | Name | Type |
47
+ | :--- | :-------------------------------- |
48
+ | `T` | extends [`ICommand`](ICommand.md) |
49
+
50
+ ##### Returns
51
+
52
+ `T`
53
+
54
+ #### Defined in
55
+
56
+ [commands/types.ts:6](https://github.com/privacy-scaling-explorations/maci/blob/6a905de08/domainobjs/ts/commands/types.ts#L6)
57
+
58
+ ---
59
+
60
+ ### equals
61
+
62
+ • **equals**: \<T\>(`command`: `T`) => `boolean`
63
+
64
+ #### Type declaration
65
+
66
+ ▸ \<`T`\>(`command`): `boolean`
67
+
68
+ ##### Type parameters
69
+
70
+ | Name | Type |
71
+ | :--- | :-------------------------------- |
72
+ | `T` | extends [`ICommand`](ICommand.md) |
73
+
74
+ ##### Parameters
75
+
76
+ | Name | Type |
77
+ | :-------- | :--- |
78
+ | `command` | `T` |
79
+
80
+ ##### Returns
81
+
82
+ `boolean`
83
+
84
+ #### Defined in
85
+
86
+ [commands/types.ts:7](https://github.com/privacy-scaling-explorations/maci/blob/6a905de08/domainobjs/ts/commands/types.ts#L7)
87
+
88
+ ---
89
+
90
+ ### toJSON
91
+
92
+ • **toJSON**: () => `unknown`
93
+
94
+ #### Type declaration
95
+
96
+ ▸ (): `unknown`
97
+
98
+ ##### Returns
99
+
100
+ `unknown`
101
+
102
+ #### Defined in
103
+
104
+ [commands/types.ts:8](https://github.com/privacy-scaling-explorations/maci/blob/6a905de08/domainobjs/ts/commands/types.ts#L8)
@@ -0,0 +1,31 @@
1
+ ---
2
+ title: IG1ContractParams
3
+ sidebar_label: IG1ContractParams
4
+ ---
5
+
6
+ ## Table of contents
7
+
8
+ ### Properties
9
+
10
+ - [x](IG1ContractParams.md#x)
11
+ - [y](IG1ContractParams.md#y)
12
+
13
+ ## Properties
14
+
15
+ ### x
16
+
17
+ • **x**: `BigNumberish`
18
+
19
+ #### Defined in
20
+
21
+ [types.ts:46](https://github.com/privacy-scaling-explorations/maci/blob/6a905de08/domainobjs/ts/types.ts#L46)
22
+
23
+ ---
24
+
25
+ ### y
26
+
27
+ • **y**: `BigNumberish`
28
+
29
+ #### Defined in
30
+
31
+ [types.ts:47](https://github.com/privacy-scaling-explorations/maci/blob/6a905de08/domainobjs/ts/types.ts#L47)
@@ -0,0 +1,31 @@
1
+ ---
2
+ title: IG2ContractParams
3
+ sidebar_label: IG2ContractParams
4
+ ---
5
+
6
+ ## Table of contents
7
+
8
+ ### Properties
9
+
10
+ - [x](IG2ContractParams.md#x)
11
+ - [y](IG2ContractParams.md#y)
12
+
13
+ ## Properties
14
+
15
+ ### x
16
+
17
+ • **x**: `BigNumberish`[]
18
+
19
+ #### Defined in
20
+
21
+ [types.ts:51](https://github.com/privacy-scaling-explorations/maci/blob/6a905de08/domainobjs/ts/types.ts#L51)
22
+
23
+ ---
24
+
25
+ ### y
26
+
27
+ • **y**: `BigNumberish`[]
28
+
29
+ #### Defined in
30
+
31
+ [types.ts:52](https://github.com/privacy-scaling-explorations/maci/blob/6a905de08/domainobjs/ts/types.ts#L52)