Fix big proof generation
This commit is contained in:
parent
e1a50fcd08
commit
ca6b8f3eea
@ -6186,7 +6186,7 @@ async function buldABC(curve, zkey, witness, coeffs) {
|
||||
const coeffsDV = [];
|
||||
const PAGE_LEN = coeffs.buffers[0].length;
|
||||
for (let i=0; i< coeffs.buffers.length; i++) {
|
||||
coeffsDV.push(new DataView(coeffs.buffers[i]));
|
||||
coeffsDV.push(new DataView(coeffs.buffers[i].buffer));
|
||||
}
|
||||
getUint32 = function (pos) {
|
||||
return coeffsDV[Math.floor(pos/PAGE_LEN)].getUint32(pos % PAGE_LEN, true);
|
||||
|
@ -1674,7 +1674,7 @@ async function buldABC(curve, zkey, witness, coeffs) {
|
||||
const coeffsDV = [];
|
||||
const PAGE_LEN = coeffs.buffers[0].length;
|
||||
for (let i=0; i< coeffs.buffers.length; i++) {
|
||||
coeffsDV.push(new DataView(coeffs.buffers[i]));
|
||||
coeffsDV.push(new DataView(coeffs.buffers[i].buffer));
|
||||
}
|
||||
getUint32 = function (pos) {
|
||||
return coeffsDV[Math.floor(pos/PAGE_LEN)].getUint32(pos % PAGE_LEN, true);
|
||||
|
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
@ -124,7 +124,7 @@ async function buldABC(curve, zkey, witness, coeffs) {
|
||||
const coeffsDV = [];
|
||||
const PAGE_LEN = coeffs.buffers[0].length;
|
||||
for (let i=0; i< coeffs.buffers.length; i++) {
|
||||
coeffsDV.push(new DataView(coeffs.buffers[i]));
|
||||
coeffsDV.push(new DataView(coeffs.buffers[i].buffer));
|
||||
}
|
||||
getUint32 = function (pos) {
|
||||
return coeffsDV[Math.floor(pos/PAGE_LEN)].getUint32(pos % PAGE_LEN, true);
|
||||
|
Loading…
Reference in New Issue
Block a user