-
Notifications
You must be signed in to change notification settings - Fork 2
/
package.json
58 lines (58 loc) · 2.12 KB
/
package.json
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
{
"name": "ec-elgamal-circuit",
"version": "2.0.0",
"description": "Circom2 Circuit of ElGamal Scheme over Baby Jubjub Curve",
"main": "index.js",
"scripts": {
"ptau": "./scripts/ptau.sh",
"build-circuits": "./scripts/build-all-circuits.sh",
"test": "ts-mocha --timeout 500000 --require mocha-suppress-logs ./test/*.test.ts --exit",
"test-circuits": "ts-mocha --timeout 5000000 --require mocha-suppress-logs ./test/circuits.test.ts --exit",
"test-elgamal": "ts-mocha --timeout 500000000 ./test/elgamal.test.ts --exit",
"delete-lookupTables": "rm ./lookupTables/*.json",
"precompute-lookupTable": "yarn ts-node ./utils/precompute.ts",
"r1cs-info-encrypt": "snarkjs ri ./circuits/artifacts/encrypt_test/encrypt.r1cs",
"r1cs-info-decrypt": "snarkjs ri ./circuits/artifacts/decrypt_test/decrypt.r1cs",
"r1cs-info-elgamal": "yarn r1cs-info-encrypt && yarn r1cs-info-decrypt",
"r1cs-info": "yarn bench-negate && yarn benchmark-elgamal",
"benchmark-babyjub": "yarn ts-node ./benchmark/noble.ts",
"benchmark-circom_tester": "yarn ts-node ./benchmark/circuit.ts",
"benchmark-decode": "yarn ts-node ./benchmark/decode.ts",
"format": "yarn prettier --write \"src/**/*.{ts,js}\" \"test/**/*.{ts,js}\" \"utils/**/*.{ts,js}\" -w",
"lint": "yarn prettier \"src/**/*{ts,js}\" --check"
},
"keywords": [
"ZKP",
"circom2",
"elgamal",
"homomorphic",
"baby jubjub"
],
"author": "Shigoto-dev19",
"license": "ISC",
"devDependencies": {
"@types/chai": "^4.3.5",
"@types/chai-as-promised": "^7.1.6",
"@types/mocha": "^10.0.1",
"@types/node": "^20.5.3",
"chai": "^4.3.7",
"chai-as-promised": "^7.1.1",
"circom_tester": "^0.0.19",
"cli-progress": "^3.11.2",
"micro-bmark": "^0.3.1",
"mocha": "^10.2.0",
"mocha-suppress-logs": "^0.3.1",
"prettier": "^3.0.3",
"ts-mocha": "^10.0.0",
"ts-node": "^10.9.1",
"typescript": "^5.1.6"
},
"dependencies": {
"@noble/curves": "^1.2.0",
"circomlib": "^2.0.5",
"circomlibjs": "^0.1.7",
"ffjavascript": "^0.2.60",
"fs": "^0.0.1-security",
"snarkjs": "^0.5.0"
}
}