|
|
@ -6,6 +6,7 @@ echo "compiling circuit" |
|
|
|
circom circuit.circom -r1cs --wasm --sym |
|
|
|
echo "generating setup" |
|
|
|
snarkjs setup |
|
|
|
sed -i 's/null/["0","0","0"]/g' proving_key.json |
|
|
|
echo "calculating witness" |
|
|
|
snarkjs calculatewitness --wasm circuit.wasm --input input.json --witness witness.json |
|
|
|
|
|
|
@ -15,5 +16,6 @@ echo "compiling circuit" |
|
|
|
circom circuit.circom -r1cs --wasm --sym |
|
|
|
echo "generating setup" |
|
|
|
snarkjs setup |
|
|
|
sed -i 's/null/["0","0","0"]/g' proving_key.json |
|
|
|
echo "calculating witness" |
|
|
|
snarkjs calculatewitness --wasm circuit.wasm --input input.json --witness witness.json |