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.

14 lines
444 B

  1. # run from within test-vectors dir
  2. DIR="test-vectors"
  3. if [ ! -d "$DIR" ]; then
  4. echo "Directory $DIR does not exist. Please ensure you are running this script from the correct location."
  5. exit 1
  6. fi
  7. cd "$DIR"
  8. echo "compiling"
  9. circom circuit2.circom --wasm --r1cs
  10. node circuit2_js/generate_witness.js circuit2_js/circuit2.wasm mycircuit-input1.json circuit2_js/witness.wtns
  11. snarkjs wej circuit2_js/witness.wtns safe-circuit-witness.json