diff --git a/circuits/package.json b/circuits/package.json index bfd6ab42ad..2599da4a36 100644 --- a/circuits/package.json +++ b/circuits/package.json @@ -39,7 +39,7 @@ }, "dependencies": { "@zk-kit/circuits": "^0.3.0", - "circomkit": "^0.0.20", + "circomkit": "^0.0.21", "circomlib": "^2.0.5", "maci-core": "^1.1.2", "maci-crypto": "^1.1.2", diff --git a/circuits/ts/compile.ts b/circuits/ts/compile.ts index 3ec91c94cc..f88a2ac751 100644 --- a/circuits/ts/compile.ts +++ b/circuits/ts/compile.ts @@ -53,6 +53,9 @@ export const compileCircuits = async (cWitness?: boolean, outputPath?: string): // eslint-disable-next-line @typescript-eslint/prefer-for-of for (let i = 0; i < circuitsConfigs.length; i += 1) { const circuit = circuitsConfigs[i]; + // eslint-disable-next-line no-console + console.log(`Compiling ${circuit.name}...`); + // eslint-disable-next-line no-await-in-loop const outPath = await circomkitInstance.compile(circuit.name, circuit); diff --git a/circuits/ts/genZkeys.ts b/circuits/ts/genZkeys.ts index 18f3d41cb6..d56a31fa3d 100644 --- a/circuits/ts/genZkeys.ts +++ b/circuits/ts/genZkeys.ts @@ -45,9 +45,12 @@ export const generateZkeys = async (outputPath?: string): Promise => { for (let i = 0; i < circuitsConfigs.length; i += 1) { const circuit = circuitsConfigs[i]; + // eslint-disable-next-line no-console + console.log(`Generating zKey for ${circuit.name}...`); + // eslint-disable-next-line no-await-in-loop const { proverKeyPath } = await circomkitInstance.setup(circuit.name); - // rename to zkey as circomkit changes to pkey + // rename the zkey const zkeyPath = path.resolve(circomKitConfig.dirBuild, circuit.name, `${circuit.name}.0.zkey`); fs.renameSync(proverKeyPath, zkeyPath); } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 038a8ed78d..dc72e90c0e 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -96,8 +96,8 @@ importers: specifier: ^0.3.0 version: 0.3.0 circomkit: - specifier: ^0.0.20 - version: 0.0.20 + specifier: ^0.0.21 + version: 0.0.21 circomlib: specifier: ^2.0.5 version: 2.0.5 @@ -6908,7 +6908,7 @@ packages: dependencies: chai: 4.4.0 child_process: 1.0.2 - ffjavascript: 0.2.62 + ffjavascript: 0.2.63 fnv-plus: 1.3.1 r1csfile: 0.0.41 snarkjs: 0.5.0 @@ -6916,8 +6916,8 @@ packages: util: 0.12.5 dev: false - /circomkit@0.0.20: - resolution: {integrity: sha512-rzCJFV1WNshAhOrlSW1rnz3tTRoVjsQ3gkO4T0sNcrYa3mNRQxc02O4d7pUS7mKhAGDFgo2VpIkz3zfPcoLhrA==} + /circomkit@0.0.21: + resolution: {integrity: sha512-DlMifIquyKOf4mSOjW6TostDwiXsuQp+Fox+3hR+cvARfthPR7LZq42I5PaT8B5Hr970LGnK6qTEFQvI1IfmgQ==} engines: {node: '>=12.0.0'} hasBin: true dependencies: