Command line utility for converting Groth16 artifacts from snarkJS format to zkVerify format.
npm install
npm test
- Converting a snarkJS Groth16 zk-proof stored in file
proof.jsonnode snarkjs2zkv convert-proof proof.json
- Converting a snarkJS Groth16 verification key stored in file
verification_key.jsonnode snarkjs2zkv convert-vk verification_key.json
- Converting Groth16 public inputs stored in file
public.jsonnode snarkjs2zkv convert-public public.json -c bn128 # for BN128 curvenode snarkjs2zkv convert-public public.json -c bls12381 # for BLS12-381 curve
By default these commands print their output to stdout, but it's possible redirect output to a file via the -o or --out option.