forked from sshravan/bellman-bignat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmerkle-snarks-setup.sh
25 lines (21 loc) · 2.05 KB
/
merkle-snarks-setup.sh
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
#! /bin/bash
mkdir -p pedersen-30/
mkdir -p poseidon-30/
time cargo build
export BELLMAN_VERBOSE=1
(time cargo +nightly run --release --example set_proof merkle 04 30 --hash pedersen -v --oparams pedersen-30/pedersen-TX-02.in;
time cargo +nightly run --release --example set_proof merkle 08 30 --hash pedersen -v --oparams pedersen-30/pedersen-TX-03.in;
time cargo +nightly run --release --example set_proof merkle 16 30 --hash pedersen -v --oparams pedersen-30/pedersen-TX-04.in;
time cargo +nightly run --release --example set_proof merkle 32 30 --hash pedersen -v --oparams pedersen-30/pedersen-TX-05.in;
time cargo +nightly run --release --example set_proof merkle 64 30 --hash pedersen -v --oparams pedersen-30/pedersen-TX-06.in;
time cargo +nightly run --release --example set_proof merkle 128 30 --hash pedersen -v --oparams pedersen-30/pedersen-TX-07.in;
time cargo +nightly run --release --example set_proof merkle 04 30 --hash poseidon -v --oparams poseidon-30/poseidon-TX-02.in;
time cargo +nightly run --release --example set_proof merkle 08 30 --hash poseidon -v --oparams poseidon-30/poseidon-TX-03.in;
time cargo +nightly run --release --example set_proof merkle 16 30 --hash poseidon -v --oparams poseidon-30/poseidon-TX-04.in;
time cargo +nightly run --release --example set_proof merkle 32 30 --hash poseidon -v --oparams poseidon-30/poseidon-TX-05.in;
time cargo +nightly run --release --example set_proof merkle 64 30 --hash poseidon -v --oparams poseidon-30/poseidon-TX-06.in;
time cargo +nightly run --release --example set_proof merkle 128 30 --hash poseidon -v --oparams poseidon-30/poseidon-TX-07.in;
time cargo +nightly run --release --example set_proof merkle 256 30 --hash poseidon -v --oparams poseidon-30/poseidon-TX-08.in;
time cargo +nightly run --release --example set_proof merkle 512 30 --hash poseidon -v --oparams poseidon-30/poseidon-TX-09.in;
time cargo +nightly run --release --example set_proof merkle 1024 30 --hash poseidon -v --oparams poseidon-30/poseidon-TX-10.in;) | tee merkle-snarks-setup.log
# time python parse-logs.py merkle-snarks-baseline.log