fix zkv big key

This commit is contained in:
Jordi Baylina 2020-10-27 07:39:05 +01:00
parent a017b105cd
commit fb59f9f09c
No known key found for this signature in database
GPG Key ID: 7480C80C1BE43112
5 changed files with 7 additions and 7 deletions

View File

@ -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++) {

View File

@ -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

File diff suppressed because one or more lines are too long

View File

@ -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++) {