mirror of
https://github.com/tornadocash/snarkjs.git
synced 2024-10-31 23:35:40 +01:00
Fix zkv big key
This commit is contained in:
parent
fb59f9f09c
commit
32a08552ab
@ -5442,7 +5442,7 @@ async function phase2verify(r1csFileName, pTauFileName, zkeyFileName, logger) {
|
||||
const buff2 = await fdPTau.read(sG*n, sectionsPTau[2][0].p + i*MAX_CHUNK_SIZE*sG);
|
||||
|
||||
const buffB = await batchSubstract(buff1, buff2);
|
||||
const buffS = buff_r.slice((i*MAX_CHUNK_SIZE)*zkey.n8r, (i*MAX_CHUNK_SIZE+n)*zkey.n8r);
|
||||
const buffS = buff_r.slice(i*zkey.n8r, (i+n)*zkey.n8r);
|
||||
const r = await G.multiExpAffine(buffB, buffS);
|
||||
|
||||
R1 = G.add(R1, r);
|
||||
|
@ -5654,7 +5654,7 @@ async function phase2verify(r1csFileName, pTauFileName, zkeyFileName, logger) {
|
||||
const buff2 = await fdPTau.read(sG*n, sectionsPTau[2][0].p + i*MAX_CHUNK_SIZE*sG);
|
||||
|
||||
const buffB = await batchSubstract(buff1, buff2);
|
||||
const buffS = buff_r.slice((i*MAX_CHUNK_SIZE)*zkey.n8r, (i*MAX_CHUNK_SIZE+n)*zkey.n8r);
|
||||
const buffS = buff_r.slice(i*zkey.n8r, (i+n)*zkey.n8r);
|
||||
const r = await G.multiExpAffine(buffB, buffS);
|
||||
|
||||
R1 = G.add(R1, r);
|
||||
|
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
@ -284,7 +284,7 @@ export default async function phase2verify(r1csFileName, pTauFileName, zkeyFileN
|
||||
const buff2 = await fdPTau.read(sG*n, sectionsPTau[2][0].p + i*MAX_CHUNK_SIZE*sG);
|
||||
|
||||
const buffB = await batchSubstract(buff1, buff2);
|
||||
const buffS = buff_r.slice((i*MAX_CHUNK_SIZE)*zkey.n8r, (i*MAX_CHUNK_SIZE+n)*zkey.n8r);
|
||||
const buffS = buff_r.slice(i*zkey.n8r, (i+n)*zkey.n8r);
|
||||
const r = await G.multiExpAffine(buffB, buffS);
|
||||
|
||||
R1 = G.add(R1, r);
|
||||
|
Loading…
Reference in New Issue
Block a user