Fix big proof generation

This commit is contained in:
Jordi Baylina 2020-10-22 17:03:25 +02:00
parent 5f0158dbed
commit 60188c0b21
No known key found for this signature in database
GPG Key ID: 7480C80C1BE43112
5 changed files with 6 additions and 6 deletions

View File

@ -6259,7 +6259,7 @@ async function buldABC(curve, zkey, witness, coeffs) {
let m = 0;
let n = getUint32(0);
while (m < n) {
var k = (n + m) >> 1;
var k = (n + m) / 2;
const va = getUint32(4 + k*sCoef + 4);
if (va > v) {
n = k - 1;

View File

@ -1747,7 +1747,7 @@ async function buldABC(curve, zkey, witness, coeffs) {
let m = 0;
let n = getUint32(0);
while (m < n) {
var k = (n + m) >> 1;
var k = (n + m) / 2;
const va = getUint32(4 + k*sCoef + 4);
if (va > v) {
n = k - 1;

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -197,7 +197,7 @@ async function buldABC(curve, zkey, witness, coeffs) {
let m = 0;
let n = getUint32(0);
while (m < n) {
var k = (n + m) >> 1;
var k = (n + m) / 2;
const va = getUint32(4 + k*sCoef + 4);
if (va > v) {
n = k - 1;