Improve msg in plonk setup
This commit is contained in:
parent
783c6fd229
commit
cdc3489abc
@ -72,8 +72,9 @@ export default async function plonkSetup(r1csName, ptauName, zkeyName, logger) {
|
||||
const cirPower = log2(plonkConstraints.length -1) +1;
|
||||
const domainSize = 2 ** cirPower;
|
||||
|
||||
if (logger) logger.info("Plonk constraints: " + plonkConstraints.length);
|
||||
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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user