Skip to content

Commit

Permalink
fix: use powers array in plonkSetup function
Browse files Browse the repository at this point in the history
  • Loading branch information
pluveto committed Nov 17, 2023
1 parent 0ff922d commit d3e59b3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion infrastructure/zk/src/run/run.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ export async function plonkSetup(powers?: number[]) {
const URL = 'https://storage.googleapis.com/universal-setup';
fs.mkdirSync('keys/setup', { recursive: true });
process.chdir('keys/setup');
for (let power = 20; power <= 26; power++) {
for (let i = 0; i < powers.length; i++) {
let power = powers[i];
if (!fs.existsSync(`setup_2^${power}.key`)) {
await utils.spawn(`curl -LO ${URL}/setup_2^${power}.key`);
await utils.sleep(1);
Expand Down

0 comments on commit d3e59b3

Please sign in to comment.