From: Chris Duncan Date: Fri, 29 Nov 2024 09:45:49 +0000 (-0800) Subject: Use more concise typing. X-Git-Url: https://zoso.dev/?a=commitdiff_plain;h=2555c170bed252c50810620ec689ed2dc2d801bf;p=libnemo.git Use more concise typing. --- diff --git a/src/lib/wallet.ts b/src/lib/wallet.ts index 7c6f000..43e74ed 100644 --- a/src/lib/wallet.ts +++ b/src/lib/wallet.ts @@ -100,7 +100,7 @@ abstract class Wallet { const data: any = [] results.forEach(r => data.push({ privateKey: hex.toBytes(r.privateKey as string), index: r.index })) let now = performance.now() - const keypairs: [{ publicKey: string, privateKey: string, index: number }] = await this.#pool.work(data) + const keypairs: KeyPair[] = await this.#pool.work(data) console.log(`keypairs: ${-now + (now = performance.now())} ms`) for (const keypair of keypairs) { if (keypair.publicKey == null) throw new RangeError('Account public key missing')