Skip to content

Commit 41361e4

Browse files
authored
Document zokrates_test.zsh
1 parent 0b88154 commit 41361e4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

scripts/zokrates_test.zsh

+4
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,13 @@ function pf_test {
3838
for proof_impl in groth16 mirage
3939
do
4040
ex_name=$1
41+
# compile the circuit to R1CS and then perform zkSNARK Setup, storing pk and vk in files P and V respectively
4142
$BIN examples/ZoKrates/pf/$ex_name.zok r1cs --action setup --proof-impl $proof_impl
43+
# create a proof using the prover input (x,w) stored in the .pin file
4244
$ZK_BIN --inputs examples/ZoKrates/pf/$ex_name.zok.pin --action prove --proof-impl $proof_impl
45+
# verify a proof using the verifier input (x) stored in the .vin file
4346
$ZK_BIN --inputs examples/ZoKrates/pf/$ex_name.zok.vin --action verify --proof-impl $proof_impl
47+
# clean up
4448
rm -rf P V pi
4549
done
4650
}

0 commit comments

Comments
 (0)