Fix big proof generation

This commit is contained in:
Jordi Baylina 2020-10-22 16:33:42 +02:00
parent 31631db4d6
commit e1a50fcd08
No known key found for this signature in database
GPG Key ID: 7480C80C1BE43112
5 changed files with 6 additions and 6 deletions

@ -6184,7 +6184,7 @@ async function buldABC(curve, zkey, witness, coeffs) {
if (coeffs instanceof ffjavascript.BigBuffer) {
const coeffsDV = [];
const PAGE_LEN = coeffs[0].length;
const PAGE_LEN = coeffs.buffers[0].length;
for (let i=0; i< coeffs.buffers.length; i++) {
coeffsDV.push(new DataView(coeffs.buffers[i]));
}

@ -1672,7 +1672,7 @@ async function buldABC(curve, zkey, witness, coeffs) {
if (coeffs instanceof ffjavascript.BigBuffer) {
const coeffsDV = [];
const PAGE_LEN = coeffs[0].length;
const PAGE_LEN = coeffs.buffers[0].length;
for (let i=0; i< coeffs.buffers.length; i++) {
coeffsDV.push(new DataView(coeffs.buffers[i]));
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -122,7 +122,7 @@ async function buldABC(curve, zkey, witness, coeffs) {
if (coeffs instanceof BigBuffer) {
const coeffsDV = [];
const PAGE_LEN = coeffs[0].length;
const PAGE_LEN = coeffs.buffers[0].length;
for (let i=0; i< coeffs.buffers.length; i++) {
coeffsDV.push(new DataView(coeffs.buffers[i]));
}