From 1ac8af2dbcf372749280cea5e8d23cddf73eb27e Mon Sep 17 00:00:00 2001 From: Jaremy Creechley Date: Mon, 20 Nov 2023 21:28:56 -0700 Subject: [PATCH] update prove --- example/prove.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/example/prove.sh b/example/prove.sh index 4d88e19..f112937 100755 --- a/example/prove.sh +++ b/example/prove.sh @@ -8,7 +8,7 @@ mkdir -p build # --- compile the circom code --- cd ${ORIG} -circom --r1cs --wasm -o build ${NAME}.circom +circom --r1cs --wasm --c -o build ${NAME}.circom # --- download powers-of-tau ceremony, if necessary --- cd ${ORIG}/build @@ -25,9 +25,9 @@ PTAU_FILE="`pwd`/${PTAU_FILE}" cd ${ORIG}/build snarkjs groth16 setup ${NAME}.r1cs $PTAU_FILE ${NAME}_0000.zkey echo "foobar entropy" | \ -snarkjs zkey contribute ${NAME}_0000.zkey ${NAME}_0001.zkey --name="1st Contributor Name" -v + snarkjs zkey contribute ${NAME}_0000.zkey ${NAME}_0001.zkey --name="1st Contributor Name" -v echo "baz entropy" | \ -snarkjs zkey contribute ${NAME}_0001.zkey ${NAME}_0002.zkey --name="2nd Contributor Name" -v + snarkjs zkey contribute ${NAME}_0001.zkey ${NAME}_0002.zkey --name="2nd Contributor Name" -v rm ${NAME}_0000.zkey rm ${NAME}_0001.zkey mv ${NAME}_0002.zkey ${NAME}.zkey