Improve msg in plonk setup

This commit is contained in:
Jordi Baylina 2021-06-01 14:42:54 +02:00
parent 783c6fd229
commit cdc3489abc
No known key found for this signature in database
GPG Key ID: 7480C80C1BE43112

@ -72,8 +72,9 @@ export default 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;
} }