Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add 'options' parameter to 'groth16FullProve', and pass it through to 'wtns_calculate' #519

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/fflonk_full_prove.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
4 changes: 2 additions & 2 deletions src/groth16_fullprove.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
4 changes: 2 additions & 2 deletions src/plonk_fullprove.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Loading