add the option to the workflow script to use the Nim prover

This commit is contained in:
Balazs Komuves 2024-05-17 18:38:47 +02:00
parent 61789cadeb
commit 795227d314
No known key found for this signature in database
GPG Key ID: F63B7AEF18435562
1 changed files with 4 additions and 0 deletions

View File

@ -25,6 +25,7 @@ cd ${ORIG}/build
# --- create the proof ---
PROVER="snarkjs"
# PROVER="nim"
RS=`which rapidsnark`
if [[ ! -z "$RS" ]]
@ -42,6 +43,9 @@ case $PROVER in
rapidsnark)
time rapidsnark ${CIRCUIT_MAIN}.zkey witness.wtns proof.json public.json
;;
nim)
time nim-groth16 -tpv --zkey=${CIRCUIT_MAIN}.zkey --wtns=witness.wtns -o=proof.json -i=public.json
;;
*)
echo "unknown prover \`$PROVER\`"
exit 99