mirror of
https://github.com/logos-storage/circom-compat.git
synced 2026-01-03 05:23:12 +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>
9 lines
406 B
Bash
Executable File
9 lines
406 B
Bash
Executable File
NUM_VARIABLES=$1
|
|
NUM_CONSTRAINTS=$2
|
|
|
|
snarkjs wtns calculate complex-circuit-$NUM_VARIABLES-$NUM_CONSTRAINTS.wasm input.json witness.wtns
|
|
snarkjs groth16 prove complex-circuit-$NUM_VARIABLES-$NUM_CONSTRAINTS.zkey witness.wtns proof.json public.json
|
|
snarkjs zkey export verificationkey complex-circuit-$NUM_VARIABLES-$NUM_CONSTRAINTS.zkey
|
|
snarkjs groth16 verify verification_key.json proof.json public.json
|
|
|