Fix trucate
This commit is contained in:
parent
20aba4928b
commit
8da74e8e3a
@ -3844,7 +3844,7 @@ async function truncate(ptauFilename, template, logger) {
|
||||
const sG1 = curve.G1.F.n8*2;
|
||||
const sG2 = curve.G2.F.n8*2;
|
||||
|
||||
for (let p=1; p<power; p++) {
|
||||
for (let p=0; p<power; p++) {
|
||||
await generateTruncate(p);
|
||||
}
|
||||
|
||||
@ -3868,7 +3868,7 @@ async function truncate(ptauFilename, template, logger) {
|
||||
await copySection(fdOld, sections, fdNew, 5, (2 ** p) * sG1); // betaTauG1
|
||||
await copySection(fdOld, sections, fdNew, 6, sG2); // betaTauG2
|
||||
await copySection(fdOld, sections, fdNew, 7); // contributions
|
||||
await copySection(fdOld, sections, fdNew, 12, ((2 ** p)*2 -1) * sG1); // L_tauG1
|
||||
await copySection(fdOld, sections, fdNew, 12, ((2 ** (p+1))*2 -1) * sG1); // L_tauG1
|
||||
await copySection(fdOld, sections, fdNew, 13, ((2 ** p)*2 -1) * sG2); // L_tauG2
|
||||
await copySection(fdOld, sections, fdNew, 14, ((2 ** p)*2 -1) * sG1); // L_alfaTauG1
|
||||
await copySection(fdOld, sections, fdNew, 15, ((2 ** p)*2 -1) * sG1); // L_betaTauG1
|
||||
|
@ -3634,7 +3634,7 @@ async function truncate(ptauFilename, template, logger) {
|
||||
const sG1 = curve.G1.F.n8*2;
|
||||
const sG2 = curve.G2.F.n8*2;
|
||||
|
||||
for (let p=1; p<power; p++) {
|
||||
for (let p=0; p<power; p++) {
|
||||
await generateTruncate(p);
|
||||
}
|
||||
|
||||
@ -3658,7 +3658,7 @@ async function truncate(ptauFilename, template, logger) {
|
||||
await copySection(fdOld, sections, fdNew, 5, (2 ** p) * sG1); // betaTauG1
|
||||
await copySection(fdOld, sections, fdNew, 6, sG2); // betaTauG2
|
||||
await copySection(fdOld, sections, fdNew, 7); // contributions
|
||||
await copySection(fdOld, sections, fdNew, 12, ((2 ** p)*2 -1) * sG1); // L_tauG1
|
||||
await copySection(fdOld, sections, fdNew, 12, ((2 ** (p+1))*2 -1) * sG1); // L_tauG1
|
||||
await copySection(fdOld, sections, fdNew, 13, ((2 ** p)*2 -1) * sG2); // L_tauG2
|
||||
await copySection(fdOld, sections, fdNew, 14, ((2 ** p)*2 -1) * sG1); // L_alfaTauG1
|
||||
await copySection(fdOld, sections, fdNew, 15, ((2 ** p)*2 -1) * sG1); // L_betaTauG1
|
||||
|
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
@ -10,7 +10,7 @@ export default async function truncate(ptauFilename, template, logger) {
|
||||
const sG1 = curve.G1.F.n8*2;
|
||||
const sG2 = curve.G2.F.n8*2;
|
||||
|
||||
for (let p=1; p<power; p++) {
|
||||
for (let p=0; p<power; p++) {
|
||||
await generateTruncate(p);
|
||||
}
|
||||
|
||||
@ -34,7 +34,7 @@ export default async function truncate(ptauFilename, template, logger) {
|
||||
await binFileUtils.copySection(fdOld, sections, fdNew, 5, (2 ** p) * sG1); // betaTauG1
|
||||
await binFileUtils.copySection(fdOld, sections, fdNew, 6, sG2); // betaTauG2
|
||||
await binFileUtils.copySection(fdOld, sections, fdNew, 7); // contributions
|
||||
await binFileUtils.copySection(fdOld, sections, fdNew, 12, ((2 ** p)*2 -1) * sG1); // L_tauG1
|
||||
await binFileUtils.copySection(fdOld, sections, fdNew, 12, ((2 ** (p+1))*2 -1) * sG1); // L_tauG1
|
||||
await binFileUtils.copySection(fdOld, sections, fdNew, 13, ((2 ** p)*2 -1) * sG2); // L_tauG2
|
||||
await binFileUtils.copySection(fdOld, sections, fdNew, 14, ((2 ** p)*2 -1) * sG1); // L_alfaTauG1
|
||||
await binFileUtils.copySection(fdOld, sections, fdNew, 15, ((2 ** p)*2 -1) * sG1); // L_betaTauG1
|
||||
|
Loading…
Reference in New Issue
Block a user