From: Chris Duncan Date: Thu, 28 Nov 2024 10:20:02 +0000 (-0800) Subject: Rename for clarity. X-Git-Url: https://zoso.dev/?a=commitdiff_plain;h=0b3109e6375cd541ae8e9977bf2fa9b38922cac7;p=libnemo.git Rename for clarity. --- diff --git a/src/lib/wallet.ts b/src/lib/wallet.ts index 2f0da5f..03e0974 100644 --- a/src/lib/wallet.ts +++ b/src/lib/wallet.ts @@ -420,11 +420,11 @@ export class Bip44Wallet extends Wallet { const data: any = [] index.forEach(i => data.push({ seed: this.seed, index: i })) let now = performance.now() - const results: [{ index: number, key: string }] = await this.#pool.work(data) + const privateKeys: [{ index: number, key: string }] = await this.#pool.work(data) console.log(`ckd: ${-now + (now = performance.now())} ms`) const accounts: Account[] = [] - for (const result of results) { - const { index, key } = result + for (const pk of privateKeys) { + const { key, index } = pk if (typeof key !== 'string') { throw new TypeError('BIP-44 child key derivation returned invalid data') }