@maci-protocol/website 0.0.0-ci.a73cfa9 → 0.0.0-ci.a874953
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@maci-protocol/website",
|
|
3
|
-
"version": "0.0.0-ci.
|
|
3
|
+
"version": "0.0.0-ci.a874953",
|
|
4
4
|
"private": false,
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -26,15 +26,15 @@
|
|
|
26
26
|
"@docusaurus/theme-classic": "^3.8.1",
|
|
27
27
|
"@docusaurus/theme-common": "^3.8.1",
|
|
28
28
|
"@docusaurus/theme-mermaid": "^3.8.1",
|
|
29
|
-
"@easyops-cn/docusaurus-search-local": "^0.
|
|
29
|
+
"@easyops-cn/docusaurus-search-local": "^0.55.1",
|
|
30
30
|
"@mdx-js/react": "^3.1.0",
|
|
31
31
|
"clsx": "^2.1.1",
|
|
32
32
|
"docusaurus-plugin-image-zoom": "^3.0.1",
|
|
33
33
|
"docusaurus-plugin-matomo": "^0.0.8",
|
|
34
34
|
"gray-matter": "^4.0.3",
|
|
35
35
|
"prism-react-renderer": "^2.4.1",
|
|
36
|
-
"react": "^19.
|
|
37
|
-
"react-dom": "^19.
|
|
36
|
+
"react": "^19.2.4",
|
|
37
|
+
"react-dom": "^19.2.4",
|
|
38
38
|
"rehype-katex": "^7.0.1",
|
|
39
39
|
"remark-math": "^6.0.0"
|
|
40
40
|
},
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"@docusaurus/module-type-aliases": "^3.8.1",
|
|
43
43
|
"@docusaurus/tsconfig": "^3.8.1",
|
|
44
44
|
"@docusaurus/types": "^3.8.1",
|
|
45
|
-
"@types/node": "^24.
|
|
45
|
+
"@types/node": "^24.11.0",
|
|
46
46
|
"@types/react": "^19.1.9",
|
|
47
47
|
"ts-node": "^10.9.2",
|
|
48
48
|
"typescript": "^5.9.2"
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
]
|
|
61
61
|
},
|
|
62
62
|
"engines": {
|
|
63
|
-
"node": "
|
|
63
|
+
"node": "20"
|
|
64
64
|
},
|
|
65
|
-
"gitHead": "
|
|
65
|
+
"gitHead": "92dc3ede8a33c55e5e6c76599397f1cada5d2098"
|
|
66
66
|
}
|
|
@@ -84,7 +84,7 @@ uint256[] memory _finalSaltedResults,
|
|
|
84
84
|
uint256[8] memory _proof
|
|
85
85
|
```
|
|
86
86
|
|
|
87
|
-
This allows the coordinator to prove the correctness of their vote tally (in `_finalSaltedResults`). They do this in batches of state leaves. Each batch of state leaves is accumulated into an intermediate state root, and the Merkle root of all the intermediate state roots is the full state root. The proof shows that the result of adding the votes in the current batch to the
|
|
87
|
+
This allows the coordinator to prove the correctness of their vote tally (in `_finalSaltedResults`). They do this in batches of state leaves. Each batch of state leaves is accumulated into an intermediate state root, and the Merkle root of all the intermediate state roots is the full state root. The proof shows that the result of adding the votes in the current batch to the cumulative results is computed correctly, but hides the results by salting and hashing them.
|
|
88
88
|
|
|
89
89
|
`_finalSaltedResults` can be any value but for the final batch, it must be the correct quadratic vote tally.
|
|
90
90
|
|
|
@@ -47,7 +47,7 @@ The MACI contract's `quadraticVoteTally()` function should verify a proof create
|
|
|
47
47
|
| `currentResultsSalt` | Private | A random value to hash with the vote tally for state leaves up to the current batch | Coordinator |
|
|
48
48
|
| `currentResultsCommitment` | Public | The salted commitment of the values in `currentResults` | Contract |
|
|
49
49
|
| `newResultsCommitment` | Public | The salted commitment of the vote tally for this batch of leaves plus the vote tally from `currentResults` | Contract |
|
|
50
|
-
| `salt` | Private | A random value to hash with the
|
|
50
|
+
| `salt` | Private | A random value to hash with the cumulate vote tally for this batch of state leaves | Coordinator |
|
|
51
51
|
| `stateLeaves[m][p]` | Private | The batch of leaves of the state tree to tally. | Coordinator |
|
|
52
52
|
| `voteLeaves[m][n]` | Private | The vote leaves for each user in this batch of state leaves. | Coordinator |
|
|
53
53
|
|
|
@@ -66,7 +66,7 @@ const joinedPollData = await joinPoll({
|
|
|
66
66
|
pollId,
|
|
67
67
|
inclusionProof,
|
|
68
68
|
pollJoiningZkey: artifacts.zKey as unknown as string,
|
|
69
|
-
|
|
69
|
+
pollJoiningWasm: artifacts.wasm as unknown as string,
|
|
70
70
|
sgDataArg: DEFAULT_SG_DATA,
|
|
71
71
|
ivcpDataArg: DEFAULT_IVCP_DATA,
|
|
72
72
|
blocksPerBatch: 1000,
|
|
@@ -114,7 +114,7 @@ const joinedPollData = await joinPoll({
|
|
|
114
114
|
pollId,
|
|
115
115
|
inclusionProof,
|
|
116
116
|
pollJoiningZkey: artifacts.zKey as unknown as string,
|
|
117
|
-
|
|
117
|
+
pollJoiningWasm: artifacts.wasm as unknown as string,
|
|
118
118
|
sgDataArg: DEFAULT_SG_DATA,
|
|
119
119
|
ivcpDataArg: DEFAULT_IVCP_DATA,
|
|
120
120
|
});
|