-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
29 lines (28 loc) · 1.65 KB
/
package.json
File metadata and controls
29 lines (28 loc) · 1.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
{
"name": "zk-proof",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"compile_circuit": "mkdir -p output && pushd output && circom ../circuit.circom --r1cs --wasm --sym; popd",
"show_constraints": "snarkjs rp output/circuit.r1cs output/circuit.sym",
"show_info": "snarkjs info -r output/circuit.r1cs",
"calculate_witness": "pushd output && snarkjs wc circuit.wasm ../input.json && snarkjs wej witness.wtns; popd",
"pot_new": "snarkjs powersoftau new bn128 12 output/pot12_0000.ptau -v",
"pot_contribute": "snarkjs powersoftau contribute output/pot12_0000.ptau output/pot12_0001.ptau --name=\"First contribution\" -v",
"pot_prepare_phase2": "snarkjs powersoftau prepare phase2 output/pot12_0001.ptau output/pot12_final.ptau -v",
"pot_gen_key": "snarkjs groth16 setup output/circuit.r1cs output/pot12_final.ptau output/circuit_0000.zkey",
"pot_contribute_phase2": "snarkjs zkey contribute output/circuit_0000.zkey output/circuit_0001.zkey --name=\"1st Contributor Name\" -v",
"pot_export_key": "snarkjs zkey export verificationkey output/circuit_0001.zkey output/verification_key.json",
"proof": "snarkjs groth16 prove output/circuit_0001.zkey output/witness.wtns output/proof.json output/public.json",
"verify": "snarkjs groth16 verify output/verification_key.json output/public.json output/proof.json",
"verify_solidity": "snarkjs zkey export solidityverifier output/circuit_0001.zkey output/verifier.sol",
"solidity_calldata": "snarkjs zkesc output/public.json output/proof.json"
},
"author": "",
"license": "ISC",
"dependencies": {
"circom": "^0.5.46",
"snarkjs": "^0.4.24"
}
}