if (!Array.isArray(index)) index = [index]\r
const data: any = []\r
index.forEach(i => data.push({ seed: this.seed, index: i }))\r
+ let now = performance.now()\r
const results: [{ index: number, key: string }] = await this.#pool.work(data)\r
+ console.log(`ckd: ${-now + (now = performance.now())} ms`)\r
const accounts = []\r
for (const result of results) {\r
const { index, key } = result\r
}\r
accounts.push(await Account.fromPrivateKey(key, index))\r
}\r
+ console.log(`accounts: ${-now + (now = performance.now())} ms`)\r
return accounts\r
}\r
}\r
if (!Array.isArray(index)) index = [index]\r
const data: any = []\r
index.forEach(i => data.push({ blake2b: blake2b.toString(), index: i, seed: this.seed }))\r
+ let now = performance.now()\r
const results: [{ index: number, key: string }] = await this.#pool.work(data)\r
+ console.log(`ckd: ${-now + (now = performance.now())} ms`)\r
const accounts = []\r
for (const result of results) {\r
const { index, key } = result\r
}\r
accounts.push(await Account.fromPrivateKey(key, index))\r
}\r
+ console.log(`accounts: ${-now + (now = performance.now())} ms`)\r
return accounts\r
}\r
}\r