mirror of
https://github.com/logos-storage/circom-compat.git
synced 2026-01-02 21:13:11 +00:00
* add benchmark * chore: add complex circuit * feat: enable parallel / asm * bench: use pre-calculated matrices/constraints * chore: bump ethers-rs * chore: fmt * feat: add benches for differently sized circuits (#6) * feat: update bench circuit * feat: add benches for many sizes * fix: adjust bench parameters * fix: remove sym * chore: fmt * fix: point to correct commit of groth16 * fix: update function names to upstream * fix: update function names to upstream Co-authored-by: Kobi Gurkan <kobigurk@gmail.com>
15 lines
429 B
Bash
Executable File
15 lines
429 B
Bash
Executable File
echo "compiling"
|
|
circom -f complex-circuit.circom --r1cs --wasm
|
|
|
|
echo "wtns"
|
|
snarkjs wtns calculate complex-circuit.wasm input.json witness.wtns
|
|
|
|
echo "zkey"
|
|
snarkjs zkey new complex-circuit.r1cs powersOfTau28_hez_final_17.ptau complex.zkey
|
|
|
|
echo "proving 1"
|
|
time snarkjs groth16 prove complex.zkey witness.wtns proof.json public.json
|
|
|
|
echo "proving 2"
|
|
time docker run rapidsnark complex.zkey witness.wtns proof.json public.json
|