]> zoso.dev Git - libnemo.git/commitdiff
Rename for clarity.
authorChris Duncan <chris@zoso.dev>
Thu, 28 Nov 2024 10:20:02 +0000 (02:20 -0800)
committerChris Duncan <chris@zoso.dev>
Thu, 28 Nov 2024 10:20:02 +0000 (02:20 -0800)
src/lib/wallet.ts

index 2f0da5f5054b1879d91f17b9a5d9909548bcded0..03e0974fdecdc4630a0f99796790ccaa50b499fc 100644 (file)
@@ -420,11 +420,11 @@ export class Bip44Wallet extends Wallet {
                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