Require: rapidsnark
- Set
.env
file: ptau and rapidsnark - Compile the circuits and Benchmark
./1-prepare.sh
./2-benchmark.sh rsa rsa
./2-benchmark.sh keccak256 keccak256
for size in {100k,400k,1200k,1600k,3200k}
do
./2-benchmark.sh complex-circuit complex-circuit-$size-$size
sleep 0.1
done
Benchmarking Results for Email-wallet by ZK-Email
- This is the largest circuit we have so far with close to
2M
constraints. - I had considered the Sample Size to be
10
for calculating average time for proving and verifying. tachyon
is around35%
faster thanrapidsnark
in theproving time
.tachyon
has usedmmap
see this PR to speed up thezk key parsing
andwitness parsing
.
Scripts from https://github.com/zkmopro/mopro