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

View File

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

View File

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

View File

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