diff --git a/packages/twitter-verifier-circuits/scripts/7_gen_solidity_verifier.sh b/packages/twitter-verifier-circuits/scripts/7_gen_solidity_verifier.sh new file mode 100755 index 000000000..27db32dfe --- /dev/null +++ b/packages/twitter-verifier-circuits/scripts/7_gen_solidity_verifier.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +source circuit.env + + +echo "****GENERATING SOLIDITY VERIFIER FOR ZKEY****" +start=$(date +%s) +set -x +NODE_OPTIONS='--max-old-space-size=644000' ../../../node_modules/.bin/snarkjs zkey export solidityverifier "$BUILD_DIR"/"$CIRCUIT_NAME".zkey ../contracts/verifier.sol +{ set +x; } 2>/dev/null +end=$(date +%s) +echo "DONE ($((end - start))s)" +echo + +echo "Solidity calldata" +NODE_OPTIONS='--max-old-space-size=644000' ../../../node_modules/.bin/snarkjs zkey export soliditycalldata "$BUILD_DIR"/public.json "$BUILD_DIR"/proof.json