mirror of
https://github.com/tornadocash/snarkjs.git
synced 2024-10-31 23:35:40 +01:00
Fix big proof generation
This commit is contained in:
parent
5f0158dbed
commit
60188c0b21
@ -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;
|
||||
|
@ -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
2
build/snarkjs.min.js
vendored
2
build/snarkjs.min.js
vendored
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 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;
|
||||
|
Loading…
Reference in New Issue
Block a user