}\r
\r
/**\r
- * Retrieves an existing HD wallet from session storage using its ID.\r
+ * Retrieves an existing HD wallet from storage using its ID.\r
*\r
* @param {string} id - Generated when the wallet was initially created\r
* @returns {Bip44Wallet} Restored locked Bip44Wallet\r
}\r
\r
/**\r
- * Retrieves an existing BLAKE2b wallet from session storage using its ID.\r
+ * Retrieves an existing BLAKE2b wallet from storage using its ID.\r
*\r
* @param {string} id - Generated when the wallet was initially created\r
* @returns {Blake2bWallet} Restored locked Blake2bWallet\r
}\r
\r
/**\r
- * Retrieves an existing Ledger wallet from session storage using its ID.\r
+ * Retrieves an existing Ledger wallet from storage using its ID.\r
*\r
* @param {string} id - Generated when the wallet was initially created\r
* @returns {LedgerWallet} Restored LedgerWallet\r
export declare abstract class Wallet {
#private
abstract ckd (index: number[]): Promise<KeyPair[]>
+ /**
+ * Retrieves all wallet IDs from the Safe.
+ *
+ * @returns Array of hexadecimal-formatted wallet IDs
+ */
+ static export (): Promise<string[]>
get id (): string
get isLocked (): boolean
get isUnlocked (): boolean
*/
static fromSeed (key: Uint8Array<ArrayBuffer>, seed: string): Promise<Bip44Wallet>
/**
- * Retrieves an existing HD wallet from session storage using its ID.
+ * Retrieves an existing HD wallet from storage using its ID.
*
* @param {string} id - Generated when the wallet was initially created
* @returns {Bip44Wallet} Restored locked Bip44Wallet
*/
static fromMnemonic (key: Uint8Array<ArrayBuffer>, mnemonic: string): Promise<Blake2bWallet>
/**
- * Retrieves an existing BLAKE2b wallet from session storage using its ID.
+ * Retrieves an existing BLAKE2b wallet from storage using its ID.
*
* @param {string} id - Generated when the wallet was initially created
* @returns {Blake2bWallet} Restored locked Blake2bWallet
onConnectUsb: (e: USBConnectionEvent) => Promise<void>
onDisconnectUsb: (e: USBConnectionEvent) => Promise<void>
/**
- * Retrieves an existing Ledger wallet from session storage using its ID.
+ * Retrieves an existing Ledger wallet from storage using its ID.
*
* @param {string} id - Generated when the wallet was initially created
* @returns {LedgerWallet} Restored LedgerWallet
'Seed contains invalid hexadecimal characters.')\r
})\r
\r
- await test('Import BIP-44 wallet from session storage using a wallet-generated ID', async () => {\r
+ await test('Import BIP-44 wallet from storage using a wallet-generated ID', async () => {\r
const id = (await Bip44Wallet.fromMnemonic(NANO_TEST_VECTORS.PASSWORD, NANO_TEST_VECTORS.MNEMONIC, NANO_TEST_VECTORS.PASSWORD)).id\r
const wallet = await Bip44Wallet.restore(id)\r
\r
await assert.resolves(wallet.destroy())\r
})\r
\r
- await test('Import BLAKE2B wallet from session storage using a wallet-generated ID', async () => {\r
+ await test('Import BLAKE2B wallet from storage using a wallet-generated ID', async () => {\r
const id = (await Blake2bWallet.fromSeed(NANO_TEST_VECTORS.PASSWORD, TREZOR_TEST_VECTORS.ENTROPY_0)).id\r
const wallet = await Blake2bWallet.restore(id)\r
\r