mirror of
https://github.com/logos-storage/logos-storage-proofs-circuits.git
synced 2026-01-04 06:23:09 +00:00
add the option to the workflow script to use the Nim prover
This commit is contained in:
parent
61789cadeb
commit
795227d314
@ -25,6 +25,7 @@ cd ${ORIG}/build
|
|||||||
# --- create the proof ---
|
# --- create the proof ---
|
||||||
|
|
||||||
PROVER="snarkjs"
|
PROVER="snarkjs"
|
||||||
|
# PROVER="nim"
|
||||||
|
|
||||||
RS=`which rapidsnark`
|
RS=`which rapidsnark`
|
||||||
if [[ ! -z "$RS" ]]
|
if [[ ! -z "$RS" ]]
|
||||||
@ -42,6 +43,9 @@ case $PROVER in
|
|||||||
rapidsnark)
|
rapidsnark)
|
||||||
time rapidsnark ${CIRCUIT_MAIN}.zkey witness.wtns proof.json public.json
|
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\`"
|
echo "unknown prover \`$PROVER\`"
|
||||||
exit 99
|
exit 99
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user