From 08c460764a18ae2e81f36fe0ad1c21e6b8d9c2ca Mon Sep 17 00:00:00 2001 From: Koh Wei Jie Date: Sun, 20 Sep 2020 11:51:26 +0800 Subject: [PATCH] fixed params index in zkeyExportVKey to allow the user to specify the vk output path --- cli.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli.js b/cli.js index 0eea9a2..16bcbda 100755 --- a/cli.js +++ b/cli.js @@ -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");