mirror of
https://github.com/tornadocash/snarkjs.git
synced 2024-10-31 23:35:40 +01:00
enable sanity check by default
This commit is contained in:
parent
616c2d3069
commit
f37f146948
@ -5841,7 +5841,7 @@ async function wtnsCalculate(input, wasmFileName, wtnsFileName, options) {
|
|||||||
await fdWasm.close();
|
await fdWasm.close();
|
||||||
|
|
||||||
const wc = await circom_runtime.WitnessCalculatorBuilder(wasm);
|
const wc = await circom_runtime.WitnessCalculatorBuilder(wasm);
|
||||||
const w = await wc.calculateBinWitness(input);
|
const w = await wc.calculateBinWitness(input, true);
|
||||||
|
|
||||||
const fdWtns = await binFileUtils.createBinFile(wtnsFileName, "wtns", 2, 2);
|
const fdWtns = await binFileUtils.createBinFile(wtnsFileName, "wtns", 2, 2);
|
||||||
|
|
||||||
|
@ -1108,7 +1108,7 @@ async function wtnsCalculate(input, wasmFileName, wtnsFileName, options) {
|
|||||||
await fdWasm.close();
|
await fdWasm.close();
|
||||||
|
|
||||||
const wc = await circom_runtime.WitnessCalculatorBuilder(wasm);
|
const wc = await circom_runtime.WitnessCalculatorBuilder(wasm);
|
||||||
const w = await wc.calculateBinWitness(input);
|
const w = await wc.calculateBinWitness(input, true);
|
||||||
|
|
||||||
const fdWtns = await binFileUtils.createBinFile(wtnsFileName, "wtns", 2, 2);
|
const fdWtns = await binFileUtils.createBinFile(wtnsFileName, "wtns", 2, 2);
|
||||||
|
|
||||||
|
File diff suppressed because one or more lines are too long
2
build/snarkjs.min.js
vendored
2
build/snarkjs.min.js
vendored
File diff suppressed because one or more lines are too long
@ -29,7 +29,7 @@ export default async function wtnsCalculate(input, wasmFileName, wtnsFileName, o
|
|||||||
await fdWasm.close();
|
await fdWasm.close();
|
||||||
|
|
||||||
const wc = await WitnessCalculatorBuilder(wasm);
|
const wc = await WitnessCalculatorBuilder(wasm);
|
||||||
const w = await wc.calculateBinWitness(input);
|
const w = await wc.calculateBinWitness(input, true);
|
||||||
|
|
||||||
const fdWtns = await binFileUtils.createBinFile(wtnsFileName, "wtns", 2, 2);
|
const fdWtns = await binFileUtils.createBinFile(wtnsFileName, "wtns", 2, 2);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user