mopro
mopro copied to clipboard
Benchmark and compare with rapidsnark prover
Problem
Right now we are using ark-groth16 as native prover. This is in Rust and simplifies a lot of things. At the same time, rapidsnark is more mature and with recent optimizations for mobile it might be more performant.
We want to understand the performance diff better, understand where it makes sense and possibly have it as a feature that can be used (switching between provers to use).
Details
See https://github.com/iden3/rapidsnark
Note that currently witness calculation is bottleneck (wasm), not prover. This means this issue isn't super high on the priority list right now. It may become more relevant in the future, especially as prover time is a bottleneck and if it has a bi impact on e.g. older Android devices.
Polygon Identity might also do some benchmarking of Keccak256 using their stack so we get something roughly comparable (albeit perhaps with different devices).
Acceptance criteria
Better data on performance diff for using rapidsnark vs ark-groth16.