Comparing version 0.0.18 to 0.0.19
@@ -8,3 +8,3 @@ { | ||
}, | ||
"version": "0.0.18", | ||
"version": "0.0.19", | ||
"description": "r1cs file format parser", | ||
@@ -11,0 +11,0 @@ "main": "./build/main.cjs", |
@@ -6,3 +6,3 @@ import {getCurveFromR} from "ffjavascript"; | ||
export async function readR1csHeader(fd,sections) { | ||
export async function readR1csHeader(fd,sections,singleThread) { | ||
@@ -16,3 +16,3 @@ | ||
res.curve = await getCurveFromR(res.prime, true); | ||
res.curve = await getCurveFromR(res.prime, singleThread); | ||
@@ -30,6 +30,6 @@ res.nVars = await fd.readULE32(); | ||
export async function readR1cs(fileName, loadConstraints, loadMap, logger, loggerCtx) { | ||
export async function readR1cs(fileName, loadConstraints, loadMap, singleThread, logger, loggerCtx) { | ||
const {fd, sections} = await binFileUtils.readBinFile(fileName, "r1cs", 1, 1<<22, 1<<25); | ||
const res = await readR1csHeader(fd, sections); | ||
const res = await readR1csHeader(fd, sections, singleThread); | ||
@@ -36,0 +36,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
131195