-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpackage.json
31 lines (31 loc) · 1.49 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
{
"name": "create-circom-project",
"version": "0.1.0",
"description": "A circom started project for simpler use and zero-knowledge project development with simple commands",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"build": "cp sample_result.json result.json && mkdir ./circuits/build && circom ./circuits/circuit.circom --r1cs --wasm -o ./circuits/build",
"setup": "mkdir ./circuits/build/keys && npx snarkjs groth16 setup ./circuits/build/circuit.r1cs powersOfTau28_hez_final_12.ptau ./circuits/build/keys/circuit_0000.zkey && npx snarkjs zkey export verificationkey ./circuits/build/keys/circuit_0000.zkey ./circuits/build/keys/verification_key.json",
"verify": "node ./scripts/main.js",
"generate-solidity": "npx snarkjs zkey export solidityverifier ./circuits/build/keys/circuit_0000.zkey ./contracts/Verifier.sol",
"clean": "rm -rf ./circuits/build ticket.json result.json",
"load-voter-data": "node ./scripts/utils/genVoterData.js",
"start-poll": "npm run build && npm run setup && npm run generate-solidity && npm run load-voter-data",
"download-ticket": "node ./scripts/getTicket.js",
"vote": "node ./scripts/vote.js"
},
"author": "Advaita Saha",
"license": "MIT",
"dependencies": {
"app-root-path": "^3.1.0",
"circomlib": "^2.0.5",
"circomlibjs": "^0.1.7",
"prompt-sync": "^4.2.0",
"qrcode": "^1.5.1",
"snarkjs": "^0.6.10"
},
"devDependencies": {
"hardhat": "^2.13.0"
}
}