We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0b88154 commit 41361e4Copy full SHA for 41361e4
scripts/zokrates_test.zsh
@@ -38,9 +38,13 @@ function pf_test {
38
for proof_impl in groth16 mirage
39
do
40
ex_name=$1
41
+ # compile the circuit to R1CS and then perform zkSNARK Setup, storing pk and vk in files P and V respectively
42
$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
44
$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
46
$ZK_BIN --inputs examples/ZoKrates/pf/$ex_name.zok.vin --action verify --proof-impl $proof_impl
47
+ # clean up
48
rm -rf P V pi
49
done
50
}
0 commit comments