import { ADDRESS_GAP, SEED_LENGTH_BIP44, SEED_LENGTH_BLAKE2B } from './constants.js'\r
import { dec, hex } from './convert.js'\r
import { Entropy } from './entropy.js'\r
+import { Pool } from './pool.js'\r
import { Rpc } from './rpc.js'\r
import { Safe } from './safe.js'\r
import type { Ledger } from './ledger.js'\r
*/\r
export class Bip44Wallet extends Wallet {\r
static #isInternal: boolean = false\r
+ #pool: Pool\r
\r
constructor (seed: string, mnemonic?: Bip39Mnemonic, id?: string) {\r
if (!Bip44Wallet.#isInternal) {\r
throw new Error(`Bip44Wallet cannot be instantiated directly. Use 'await Bip44Wallet.create()' instead.`)\r
}\r
super(seed, mnemonic, id)\r
+ this.#pool = new Pool('./workers/ckdBip44.js')\r
Bip44Wallet.#isInternal = false\r
}\r
\r
*/\r
export class Blake2bWallet extends Wallet {\r
static #isInternal: boolean = false\r
+ #pool: Pool\r
\r
constructor (seed: string, mnemonic?: Bip39Mnemonic, id?: string) {\r
if (!Blake2bWallet.#isInternal) {\r
throw new Error(`Blake2bWallet cannot be instantiated directly. Use 'await Blake2bWallet.create()' instead.`)\r
}\r
super(seed, mnemonic, id)\r
+ this.#pool = new Pool('./workers/ckdBlake2b.js')\r
Blake2bWallet.#isInternal = false\r
}\r
\r