diff --git a/cli.js b/cli.js index 9e40502..17f24cc 100755 --- a/cli.js +++ b/cli.js @@ -446,7 +446,7 @@ function generateVerifier_original(verificationKey) { // The points - template = template.replace("<%vk_input_length%>", (verificationKey.IC.length-1).toString()); + template = template.replace(/<%vk_input_length%>/g, (verificationKey.IC.length-1).toString()); template = template.replace("<%vk_ic_length%>", verificationKey.IC.length.toString()); let vi = ""; for (let i=0; i", (verificationKey.IC.length-1).toString()); + template = template.replace(/<%vk_input_length%>/g, (verificationKey.IC.length-1).toString()); template = template.replace("<%vk_ic_length%>", verificationKey.IC.length.toString()); let vi = ""; for (let i=0; i", (verificationKey.IC.length-1).toString()); + template = template.replace(/<%vk_input_length%>/g, (verificationKey.IC.length-1).toString()); template = template.replace("<%vk_ic_length%>", verificationKey.IC.length.toString()); let vi = ""; for (let i=0; i