Fix Big Proof

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

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

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

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