This commit is contained in:
Jordi Baylina 2021-06-01 14:43:58 +02:00
parent cdc3489abc
commit f39761f2c7
No known key found for this signature in database
GPG Key ID: 7480C80C1BE43112
4 changed files with 8 additions and 5 deletions

@ -6050,8 +6050,9 @@ async function plonkSetup(r1csName, ptauName, zkeyName, logger) {
const cirPower = log2(plonkConstraints.length -1) +1; const cirPower = log2(plonkConstraints.length -1) +1;
const domainSize = 2 ** cirPower; const domainSize = 2 ** cirPower;
if (logger) logger.info("Plonk constraints: " + plonkConstraints.length);
if (cirPower > power) { if (cirPower > power) {
if (logger) logger.error(`circuit too big for this power of tau ceremony. ${plonkConstraints.length}*2 > 2**${power}`); if (logger) logger.error(`circuit too big for this power of tau ceremony. ${plonkConstraints.length} > 2**${power}`);
return -1; return -1;
} }

@ -6007,8 +6007,9 @@ async function plonkSetup(r1csName, ptauName, zkeyName, logger) {
const cirPower = log2(plonkConstraints.length -1) +1; const cirPower = log2(plonkConstraints.length -1) +1;
const domainSize = 2 ** cirPower; const domainSize = 2 ** cirPower;
if (logger) logger.info("Plonk constraints: " + plonkConstraints.length);
if (cirPower > power) { if (cirPower > power) {
if (logger) logger.error(`circuit too big for this power of tau ceremony. ${plonkConstraints.length}*2 > 2**${power}`); if (logger) logger.error(`circuit too big for this power of tau ceremony. ${plonkConstraints.length} > 2**${power}`);
return -1; return -1;
} }

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long