Fix concurrency in proof calculation
This commit is contained in:
parent
e8f8850fe1
commit
0199e57619
@ -6045,7 +6045,7 @@ async function buldABC(curve, zkey, witness, coeffs) {
|
|||||||
|
|
||||||
const cutPoints = [];
|
const cutPoints = [];
|
||||||
for (let i=0; i<concurrency; i++) {
|
for (let i=0; i<concurrency; i++) {
|
||||||
cutPoints.push( getCutPoint( Math.floor(i*zkey.domainSize /concurrency) ));
|
cutPoints.push( getCutPoint( Math.floor(i*elementsPerChunk) ));
|
||||||
}
|
}
|
||||||
cutPoints.push(coeffs.byteLength);
|
cutPoints.push(coeffs.byteLength);
|
||||||
|
|
||||||
|
@ -1526,7 +1526,7 @@ async function buldABC(curve, zkey, witness, coeffs) {
|
|||||||
|
|
||||||
const cutPoints = [];
|
const cutPoints = [];
|
||||||
for (let i=0; i<concurrency; i++) {
|
for (let i=0; i<concurrency; i++) {
|
||||||
cutPoints.push( getCutPoint( Math.floor(i*zkey.domainSize /concurrency) ));
|
cutPoints.push( getCutPoint( Math.floor(i*elementsPerChunk) ));
|
||||||
}
|
}
|
||||||
cutPoints.push(coeffs.byteLength);
|
cutPoints.push(coeffs.byteLength);
|
||||||
|
|
||||||
|
1728
build/snarkjs.js
1728
build/snarkjs.js
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
@ -115,7 +115,7 @@ async function buldABC(curve, zkey, witness, coeffs) {
|
|||||||
|
|
||||||
const cutPoints = [];
|
const cutPoints = [];
|
||||||
for (let i=0; i<concurrency; i++) {
|
for (let i=0; i<concurrency; i++) {
|
||||||
cutPoints.push( getCutPoint( Math.floor(i*zkey.domainSize /concurrency) ));
|
cutPoints.push( getCutPoint( Math.floor(i*elementsPerChunk) ));
|
||||||
}
|
}
|
||||||
cutPoints.push(coeffs.byteLength);
|
cutPoints.push(coeffs.byteLength);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user