You should have installed gcc, libsodium, and gmp (development)
sudo apt install build-essential sudo apt-get install libgmp-dev sudo apt-get install libsodium-dev sudo apt-get install nasm
npm install git submodule init git submodule update npx task createFieldSources npx task buildProver
You have a full prover compiled in the build directory.
So you can replace snarkjs command:
snarkjs groth16 prove <circuit.zkey> <witness.wtns> <proof.json> <public.json>
by this one
./build/prove <circuit.zkey> <witness.wtns> <proof.json> <public.json>
This prover uses intel assembly with ADX extensions and parallelizes as much as it can the proof generation.
The prover is much faster that snarkjs and faster than bellman.
[TODO] Some comparation tests should be done.
rapidsnark is part of the iden3 project copyright 2021 0KIMS association and published with GPL-3 license. Please check the COPYING file for more details.