const data: any = []\r
results.forEach(r => data.push({ privateKey: r.privateKey, index: r.index }))\r
let now = performance.now()\r
- const keypairs: KeyPair[] = await this.#pool.work(data)\r
+ const keypairs: KeyPair[] = await this.#pool.work('divide', data)\r
console.log(`keypairs: ${-now + (now = performance.now())} ms`)\r
for (const keypair of keypairs) {\r
if (keypair.publicKey == null) throw new RangeError('Account public key missing')\r
const data: any = []\r
indexes.forEach(i => data.push({ seed: this.seed, index: i }))\r
let now = performance.now()\r
- const privateKeys: KeyPair[] = await this.#pool.work(data)\r
+ const privateKeys: KeyPair[] = await this.#pool.work('divide', data)\r
console.log(`ckd: ${-now + (now = performance.now())} ms`)\r
return privateKeys\r
}\r