Fix Big Prove
This commit is contained in:
parent
467e30f727
commit
19951ea443
@ -6265,7 +6265,13 @@ async function joinABC(curve, zkey, a, b, c, logger) {
|
||||
|
||||
const result = await Promise.all(promises);
|
||||
|
||||
const outBuff = new Uint8Array(a.byteLength);
|
||||
let outBuff;
|
||||
if (a instanceof ffjavascript.BigBuffer) {
|
||||
outBuff = new ffjavascript.BigBuffer(a.byteLength);
|
||||
} else {
|
||||
outBuff = new Uint8Array(a.byteLength);
|
||||
}
|
||||
|
||||
let p=0;
|
||||
for (let i=0; i<result.length; i++) {
|
||||
outBuff.set(result[i][0], p);
|
||||
|
@ -1753,7 +1753,13 @@ async function joinABC(curve, zkey, a, b, c, logger) {
|
||||
|
||||
const result = await Promise.all(promises);
|
||||
|
||||
const outBuff = new Uint8Array(a.byteLength);
|
||||
let outBuff;
|
||||
if (a instanceof ffjavascript.BigBuffer) {
|
||||
outBuff = new ffjavascript.BigBuffer(a.byteLength);
|
||||
} else {
|
||||
outBuff = new Uint8Array(a.byteLength);
|
||||
}
|
||||
|
||||
let p=0;
|
||||
for (let i=0; i<result.length; i++) {
|
||||
outBuff.set(result[i][0], p);
|
||||
|
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
@ -333,7 +333,13 @@ async function joinABC(curve, zkey, a, b, c, logger) {
|
||||
|
||||
const result = await Promise.all(promises);
|
||||
|
||||
const outBuff = new Uint8Array(a.byteLength);
|
||||
let outBuff;
|
||||
if (a instanceof BigBuffer) {
|
||||
outBuff = new BigBuffer(a.byteLength);
|
||||
} else {
|
||||
outBuff = new Uint8Array(a.byteLength);
|
||||
}
|
||||
|
||||
let p=0;
|
||||
for (let i=0; i<result.length; i++) {
|
||||
outBuff.set(result[i][0], p);
|
||||
|
Loading…
Reference in New Issue
Block a user