fix zkv big key
This commit is contained in:
parent
a017b105cd
commit
fb59f9f09c
@ -5420,7 +5420,7 @@ async function phase2verify(r1csFileName, pTauFileName, zkeyFileName, logger) {
|
||||
|
||||
const {fd: fdPTau, sections: sectionsPTau} = await readBinFile$1(pTauFileName, "ptau", 1);
|
||||
|
||||
let buff_r = new Uint8Array(zkey.domainSize * zkey.n8r);
|
||||
let buff_r = new ffjavascript.BigBuffer(zkey.domainSize * zkey.n8r);
|
||||
|
||||
const seed= new Array(8);
|
||||
for (let i=0; i<8; i++) {
|
||||
|
@ -5632,7 +5632,7 @@ async function phase2verify(r1csFileName, pTauFileName, zkeyFileName, logger) {
|
||||
|
||||
const {fd: fdPTau, sections: sectionsPTau} = await readBinFile(pTauFileName, "ptau", 1);
|
||||
|
||||
let buff_r = new Uint8Array(zkey.domainSize * zkey.n8r);
|
||||
let buff_r = new ffjavascript.BigBuffer(zkey.domainSize * zkey.n8r);
|
||||
|
||||
const seed= new Array(8);
|
||||
for (let i=0; i<8; 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
@ -8,7 +8,7 @@ const sameRatio = misc.sameRatio;
|
||||
import crypto from "crypto";
|
||||
import newZKey from "./zkey_new.js";
|
||||
import {hashG1, hashPubKey} from "./zkey_utils.js";
|
||||
import { Scalar, ChaCha } from "ffjavascript";
|
||||
import { Scalar, ChaCha, BigBuffer } from "ffjavascript";
|
||||
|
||||
|
||||
|
||||
@ -262,7 +262,7 @@ export default async function phase2verify(r1csFileName, pTauFileName, zkeyFileN
|
||||
|
||||
const {fd: fdPTau, sections: sectionsPTau} = await binFileUtils.readBinFile(pTauFileName, "ptau", 1);
|
||||
|
||||
let buff_r = new Uint8Array(zkey.domainSize * zkey.n8r);
|
||||
let buff_r = new BigBuffer(zkey.domainSize * zkey.n8r);
|
||||
|
||||
const seed= new Array(8);
|
||||
for (let i=0; i<8; i++) {
|
||||
|
Loading…
Reference in New Issue
Block a user