-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
89 lines (89 loc) · 4.65 KB
/
package.json
File metadata and controls
89 lines (89 loc) · 4.65 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
{
"name": "@dorafactory/maci-circuits",
"version": "0.0.1",
"private": false,
"description": "zk-SNARK circuits for Maci/aMACI",
"main": "build/ts/index.js",
"files": [
"build",
"circom",
"circomkit.json",
"LICENSE",
"README.md",
"CHANGELOG.md"
],
"publishConfig": {
"access": "public"
},
"scripts": {
"build-test-circuits-c": "ts-node ./ts/compile.ts --cWitness",
"build-test-circuits-wasm": "ts-node ./ts/compile.ts",
"generate-zkeys": "ts-node ./ts/generateZkeys.ts",
"generate-logs": "NODE_OPTIONS=--max-old-space-size=8192 ts-node ./ts/generate-logs.ts",
"circuit-info": "NODE_OPTIONS=--max-old-space-size=4096 ts-node ./ts/info.ts --zkeys build",
"watch": "tsc --watch",
"build": "tsc -p tsconfig.build.json",
"circom:build": "NODE_OPTIONS=--max-old-space-size=4096 circomkit compile",
"circom:setup": "NODE_OPTIONS=--max-old-space-size=4096 circomkit setup",
"types": "tsc -p tsconfig.json --noEmit",
"mocha-test": "NODE_OPTIONS=--max-old-space-size=4096 TS_NODE_TRANSPILE_ONLY=true ts-mocha --project tsconfig.test.json --exit -g '^(?!.*\\[fuzz\\]).*$'",
"test": "pnpm run mocha-test ts/__tests__/*.test.ts",
"test:fuzz": "NODE_OPTIONS=--max-old-space-size=4096 ts-mocha --exit -g '\\[fuzz\\]' ./ts/__tests__/*.test.ts",
"test:poseidonHasher": "pnpm run mocha-test ts/__tests__/PoseidonHasher.test.ts",
"test:privateToPublicKey": "pnpm run mocha-test ts/__tests__/PrivToPubKey.test.ts",
"test:calculateTotal": "pnpm run mocha-test ts/__tests__/CalculateTotal.test.ts",
"test:incrementalQuinaryTree": "pnpm run mocha-test ts/__tests__/IncrementalQuinaryTree.test.ts",
"test:addNewKey": "pnpm run mocha-test ts/__tests__/AddNewKey.test.ts",
"test:ecdh": "pnpm run mocha-test ts/__tests__/Ecdh.test.ts",
"test:verifySignature": "pnpm run mocha-test ts/__tests__/VerifySignature.test.ts",
"test:elgamalEncryption": "pnpm run mocha-test ts/__tests__/ElGamalEncryption.test.ts",
"test:stateLeafTransformerAmaci": "pnpm run mocha-test ts/__tests__/StateLeafTransformerAmaci.test.ts",
"test:messageValidatorAmaci": "pnpm run mocha-test ts/__tests__/MessageValidatorAmaci.test.ts",
"test:messageValidatorMaci": "pnpm run mocha-test ts/__tests__/MessageValidatorMaci.test.ts",
"test:processDeactivate": "pnpm run mocha-test ts/__tests__/ProcessDeactivate.test.ts",
"test:amaciIntegration": "pnpm run mocha-test ts/__tests__/AmaciIntegration.test.ts",
"test:maciIntegration": "pnpm run mocha-test ts/__tests__/MaciIntegration.test.ts",
"test:unpackElement": "pnpm run mocha-test ts/__tests__/UnpackElement.test.ts",
"test:messageToCommand": "pnpm run mocha-test ts/__tests__/MessageToCommand.test.ts",
"test:checkRoot": "pnpm run mocha-test ts/__tests__/CheckRoot.test.ts",
"test:sha256Hasher": "pnpm run mocha-test ts/__tests__/Sha256Hasher.test.ts",
"test:messageHasher": "pnpm run mocha-test ts/__tests__/MessageHasher.test.ts",
"test:stateLeafTransformerMaci": "pnpm run mocha-test ts/__tests__/StateLeafTransformerMaci.test.ts",
"test:processMessagesAmaci": "pnpm run mocha-test ts/__tests__/ProcessMessagesAmaci.test.ts",
"test:processMessagesMaci": "pnpm run mocha-test ts/__tests__/ProcessMessagesMaci.test.ts",
"test:tallyVotes": "pnpm run mocha-test ts/__tests__/TallyVotes.test.ts",
"test:processMessagesAmaciEdgeCases": "pnpm run mocha-test ts/__tests__/ProcessMessagesAmaciEdgeCases.test.ts",
"test:processMessagesAmaciSecurity": "pnpm run mocha-test ts/__tests__/ProcessMessagesAmaciSecurity.test.ts",
"test:processMessagesAmaciSync": "pnpm run mocha-test ts/__tests__/ProcessMessagesAmaciSync.test.ts",
"test:processMessagesAmaciIntegration": "pnpm run mocha-test ts/__tests__/ProcessMessagesAmaciIntegration.test.ts",
"test:deactivateStatusDetection": "pnpm run mocha-test ts/__tests__/DeactivateStatusDetection.test.ts"
},
"dependencies": {
"circomkit": "^0.3.4",
"circomlib": "2.0.0",
"@dorafactory/maci-sdk": "workspace:*",
"blake-hash": "^2.0.0",
"circom": "git://github.com/weijiekoh/circomlib.git#24ed08eee0bb613b8c0135d66c1013bd9f78d50a",
"csv": "^6.0.5",
"ethers": "^5.5.2",
"ffjavascript": "^0.2.46",
"snarkjs": "^0.7.4",
"web3": "^1.6.1"
},
"devDependencies": {
"@types/chai": "^4.3.11",
"@types/chai-as-promised": "^8.0.2",
"@types/mocha": "^10.0.10",
"@types/node": "^24.2.0",
"@types/snarkjs": "^0.7.9",
"@zk-kit/baby-jubjub": "^1.0.3",
"chai": "^4.3.10",
"chai-as-promised": "^8.0.1",
"fast-check": "^4.2.0",
"glob": "^11.0.3",
"mocha": "^11.7.2",
"ts-mocha": "^11.1.0",
"ts-node": "^10.9.1",
"typescript": "^5.9.2"
}
}