Merge pull request #62 from weijiekoh/fix/zk_vk_export

Fixes the zkey export verificationkey command to allow the user to specify the output path of the verification key
This commit is contained in:
Jordi Baylina 2020-12-01 17:39:02 +01:00 committed by GitHub
commit 769210b91e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

2
cli.js
View File

@ -495,7 +495,7 @@ async function groth16Verify(params, options) {
// zkey export vkey [circuit.zkey] [verification_key.json]",
async function zkeyExportVKey(params, options) {
const zkeyName = params[0] || "circuit.zkey";
const verificationKeyName = params[2] || "verification_key.json";
const verificationKeyName = params[1] || "verification_key.json";
if (options.verbose) Logger.setLogLevel("DEBUG");