Fix concurrency in proof calculation

This commit is contained in:
Jordi Baylina 2020-08-21 19:55:54 +02:00
parent e8f8850fe1
commit 0199e57619
No known key found for this signature in database
GPG Key ID: 7480C80C1BE43112
5 changed files with 144 additions and 1592 deletions

@ -6045,7 +6045,7 @@ async function buldABC(curve, zkey, witness, coeffs) {
const cutPoints = [];
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);

@ -1526,7 +1526,7 @@ async function buldABC(curve, zkey, witness, coeffs) {
const cutPoints = [];
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);

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -115,7 +115,7 @@ async function buldABC(curve, zkey, witness, coeffs) {
const cutPoints = [];
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);