throw new TypeError('Wallet ID is required to restore')\r
}\r
Bip44Wallet.#isInternal = true\r
+ id = id.replace('libnemo_', '')\r
return new this(await Entropy.import(id), '')\r
}\r
\r
throw new TypeError('Wallet ID is required to restore')\r
}\r
Blake2bWallet.#isInternal = true\r
+ id = id.replace('libnemo_', '')\r
return new this(await Entropy.import(id))\r
}\r
\r
throw new TypeError('Wallet ID is required to restore')\r
}\r
LedgerWallet.#isInternal = true\r
+ id = id.replace('libnemo_', '')\r
const wallet = new this(await Entropy.import(id))\r
await wallet.init()\r
return wallet\r
\r
await test('Bip44Wallet', async () => {\r
const id = (await Bip44Wallet.fromMnemonic(NANO_TEST_VECTORS.PASSWORD, NANO_TEST_VECTORS.MNEMONIC, NANO_TEST_VECTORS.PASSWORD)).id\r
+ debugger\r
const wallet = await Bip44Wallet.restore(id)\r
\r
assert.ok('mnemonic' in wallet)\r