build
This commit is contained in:
parent
cdc3489abc
commit
f39761f2c7
@ -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
2
build/snarkjs.min.js
vendored
2
build/snarkjs.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user