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
+ const privateKeys: [{ index: number, key: string }] = await this.#pool.work(data)\r
console.log(`ckd: ${-now + (now = performance.now())} ms`)\r
const accounts: Account[] = []\r
- for (const result of results) {\r
- const { index, key } = result\r
+ for (const pk of privateKeys) {\r
+ const { key, index } = pk\r
if (typeof key !== 'string') {\r
throw new TypeError('BIP-44 child key derivation returned invalid data')\r
}\r