Skip to content

Commit

Permalink
update script
Browse files Browse the repository at this point in the history
  • Loading branch information
0xSachinK committed Sep 22, 2023
1 parent 967e1bd commit e16ba77
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion circuits-circom/scripts/8_gen_sol_verifier.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@

source circuit.env

# Then, nonchunked snarkjs
yarn remove snarkjs
# mv ../yarn.lock ../yarn.lock_old2
# rm -rf ../node_modules_old2
# mv ../node_modules ../node_modules_old2
yarn add snarkjs@latest


echo "Generating solidity verifier..."
node ../node_modules/.bin/snarkjs zkey export solidityverifier "$BUILD_DIR"/"$CIRCUIT_NAME".zkey ../contracts/"$CIRCUIT_NAME"_verifier.sol
node ../node_modules/.bin/snarkjs zkey export solidityverifier "$BUILD_DIR"/"$CIRCUIT_NAME".zkey ../contracts/"$CIRCUIT_NAME"_verifier.sol

yarn remove snarkjs
# mv ../yarn.lock ../yarn.lock_old3
# rm -rf ../node_modules_old3
# mv ../node_modules ../node_modules_old3
yarn add snarkjs@git+https://github.com/vb7401/snarkjs.git#24981febe8826b6ab76ae4d76cf7f9142919d2b8
yarn

0 comments on commit e16ba77

Please sign in to comment.