diff --git a/src/fflonk_full_prove.js b/src/fflonk_full_prove.js index 14ecd5bc..b9e6d358 100644 --- a/src/fflonk_full_prove.js +++ b/src/fflonk_full_prove.js @@ -26,7 +26,7 @@ export default async function fflonkFullProve(_input, wasmFilename, zkeyFilename const wtns= {type: "mem"}; // Compute the witness - await wtns_calculate(input, wasmFilename, wtns); + await wtns_calculate(input, wasmFilename, wtns, wtnsCalcOptions); // Compute the proof return await fflonkProve(zkeyFilename, wtns, logger); diff --git a/src/groth16_fullprove.js b/src/groth16_fullprove.js index 4c582773..76560491 100644 --- a/src/groth16_fullprove.js +++ b/src/groth16_fullprove.js @@ -22,12 +22,12 @@ import wtns_calculate from "./wtns_calculate.js"; import {utils} from "ffjavascript"; const {unstringifyBigInts} = utils; -export default async function groth16FullProve(_input, wasmFile, zkeyFileName, logger) { +export default async function groth16FullProve(_input, wasmFile, zkeyFileName, logger, wtnsCalcOptions) { const input = unstringifyBigInts(_input); const wtns= { type: "mem" }; - await wtns_calculate(input, wasmFile, wtns); + await wtns_calculate(input, wasmFile, wtns, wtnsCalcOptions); return await groth16_prove(zkeyFileName, wtns, logger); } diff --git a/src/plonk_fullprove.js b/src/plonk_fullprove.js index d1c65be1..73b0fd05 100644 --- a/src/plonk_fullprove.js +++ b/src/plonk_fullprove.js @@ -22,12 +22,12 @@ import wtns_calculate from "./wtns_calculate.js"; import {utils} from "ffjavascript"; const {unstringifyBigInts} = utils; -export default async function plonkFullProve(_input, wasmFile, zkeyFileName, logger) { +export default async function plonkFullProve(_input, wasmFile, zkeyFileName, logger, wtnsCalcOptions) { const input = unstringifyBigInts(_input); const wtns= { type: "mem" }; - await wtns_calculate(input, wasmFile, wtns); + await wtns_calculate(input, wasmFile, wtns, wtnsCalcOptions); return await plonk_prove(zkeyFileName, wtns, logger); }