You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
550 B

  1. #!/bin/sh
  2. echo "testdata/small/circuit.circom"
  3. cd testdata/small
  4. echo "compiling circuit"
  5. circom circuit.circom -r1cs --wasm --sym
  6. echo "generating setup"
  7. snarkjs setup
  8. echo "calculating witness"
  9. snarkjs calculatewitness --wasm circuit.wasm --input input.json --witness witness.json
  10. echo "\ntestdata/big/circuit.circom"
  11. cd ../big
  12. echo "compiling circuit"
  13. circom circuit.circom -r1cs --wasm --sym
  14. echo "generating setup"
  15. snarkjs setup
  16. echo "calculating witness"
  17. snarkjs calculatewitness --wasm circuit.wasm --input input.json --witness witness.json