Fix big proof generation
This commit is contained in:
parent
31631db4d6
commit
e1a50fcd08
@ -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]));
|
||||||
}
|
}
|
||||||
|
@ -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
2
build/snarkjs.min.js
vendored
2
build/snarkjs.min.js
vendored
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) {
|
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]));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user