-
Notifications
You must be signed in to change notification settings - Fork 0
/
test_singleprover.zsh
executable file
·44 lines (35 loc) · 2.54 KB
/
test_singleprover.zsh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/usr/bin/env zsh
set -xe
trap "exit" INT TERM
trap "kill 0" EXIT
cargo build --features parallel --release --bin gen_pp_ped --bin gen_pp_ipa --bin gen_pp_kzg --bin gen_commitments_kzg --bin prove_verify_kzg --bin gen_commitments_ipa --bin prove_verify_ipa --bin gen_commitments_ped --bin prove_verify_ped
BIN=./target/release/gen_commitments_kzg
N_ARGS=6000
./target/release/gen_pp_kzg --num-args $N_ARGS;
#
## KZG commit gsz 16 coeffs
#$BIN --hosts data/2 --player-input-binary-path "/Users/hidde/Documents/PhD/auditing/cryptographic-auditing-mpc/MP-SPDZ/Player-Data/Input-Binary-P0-0" --party 0 --save & ; pid0=$!
#$BIN --hosts data/2 --player-input-binary-path "/Users/hidde/Documents/PhD/auditing/cryptographic-auditing-mpc/MP-SPDZ/Player-Data/Input-Binary-P0-0" --party 1 --save & ; pid1=$!
##$BIN --hosts data/3 --player-input-binary-path "/Users/hidde/Documents/PhD/auditing/cryptographic-auditing-mpc/MP-SPDZ/Player-Data/Input-Binary-P0-0" --party 2 --save & ; pid2=$!
#wait $pid0 $pid1
#
#BIN=./target/release/prove_verify_kzg
#
## KZG commit gsz 16 coeffs
#$BIN --hosts data/2 --mpspdz-output-file "/Users/hidde/Documents/PhD/auditing/cryptographic-auditing-mpc/output.txt" --party 0 --prover-party 0 -d & ; pid0=$!
#$BIN --hosts data/2 --mpspdz-output-file "/Users/hidde/Documents/PhD/auditing/cryptographic-auditing-mpc/output.txt" --party 1 --prover-party 0 & ; pid1=$!
##$BIN --hosts data/3 --mpspdz-output-file "/Users/hidde/Documents/PhD/auditing/cryptographic-auditing-mpc/output.txt" --party 2 --prover-party 0 & ; pid2=$!
#wait $pid0 $pid1
#BIN=./target/release/gen_commitments_ped
#./target/release/gen_pp_ped --num-args $N_ARGS;
## KZG commit gsz 16 coeffs
$BIN --hosts data/2 --player-input-binary-path "/Users/hidde/PhD/auditing/MP-SPDZ/Player-Data/Input-Binary-P0-0" --party 0 --save & ; pid0=$!
$BIN --hosts data/2 --player-input-binary-path "/Users/hidde/PhD/auditing/MP-SPDZ/Player-Data/Input-Binary-P0-0" --party 1 --save & ; pid1=$!
##$BIN --hosts data/3 --player-input-binary-path "/Users/hidde/Documents/PhD/auditing/cryptographic-auditing-mpc/MP-SPDZ/Player-Data/Input-Binary-P0-0" --party 2 --save & ; pid2=$!
#wait $pid0 $pid1
BIN=./target/release/prove_verify_kzg
# KZG commit gsz 16 coeffs
$BIN --hosts data/2 --mpspdz-output-file "output-P0.txt" --party 0 --prover-party 0 -d & ; pid0=$!
$BIN --hosts data/2 --mpspdz-output-file "output-P1.txt" --party 1 --prover-party 0 & ; pid1=$!
#$BIN --hosts data/3 --mpspdz-output-file "/Users/hidde/Documents/PhD/auditing/cryptographic-auditing-mpc/output.txt" --party 2 --prover-party 0 & ; pid2=$!
wait $pid0 $pid1