* @param {string} [salt=''] - Used when generating the final seed\r
* @returns {Bip44Wallet} A newly instantiated Bip44Wallet\r
*/\r
- static async create (password: string, salt: string): Promise<Bip44Wallet>\r
+ static async create (password: string, salt?: string): Promise<Bip44Wallet>\r
/**\r
* Creates a new HD wallet by using an entropy value generated using a\r
* cryptographically strong pseudorandom number generator.\r
* @param {string} [salt=''] - Used when generating the final seed\r
* @returns {Bip44Wallet} A newly instantiated Bip44Wallet\r
*/\r
- static async create (key: CryptoKey, salt: string): Promise<Bip44Wallet>\r
+ static async create (key: CryptoKey, salt?: string): Promise<Bip44Wallet>\r
static async create (passkey: string | CryptoKey, salt: string = ''): Promise<Bip44Wallet> {\r
Bip44Wallet.#isInternal = true\r
try {\r
* @param {string} [salt=''] - Used when generating the final seed\r
* @returns {Bip44Wallet} A newly instantiated Bip44Wallet\r
*/\r
- static async fromEntropy (password: string, entropy: string, salt: string): Promise<Bip44Wallet>\r
+ static async fromEntropy (password: string, entropy: string, salt?: string): Promise<Bip44Wallet>\r
/**\r
* Creates a new HD wallet by using a pregenerated entropy value. The user\r
* must ensure that it is cryptographically strongly random.\r
* @param {string} [salt=''] - Used when generating the final seed\r
* @returns {Bip44Wallet} A newly instantiated Bip44Wallet\r
*/\r
- static async fromEntropy (key: CryptoKey, entropy: string, salt: string): Promise<Bip44Wallet>\r
+ static async fromEntropy (key: CryptoKey, entropy: string, salt?: string): Promise<Bip44Wallet>\r
static async fromEntropy (passkey: string | CryptoKey, entropy: string, salt: string = ''): Promise<Bip44Wallet> {\r
Bip44Wallet.#isInternal = true\r
try {\r
* @param {string} [salt=''] - Used when generating the final seed\r
* @returns {Bip44Wallet} A newly instantiated Bip44Wallet\r
*/\r
- static async fromMnemonic (password: string, mnemonic: string, salt: string): Promise<Bip44Wallet>\r
+ static async fromMnemonic (password: string, mnemonic: string, salt?: string): Promise<Bip44Wallet>\r
/**\r
* Creates a new HD wallet by using a pregenerated mnemonic phrase.\r
*\r
* @param {string} [salt=''] - Used when generating the final seed\r
* @returns {Bip44Wallet} A newly instantiated Bip44Wallet\r
*/\r
- static async fromMnemonic (key: CryptoKey, mnemonic: string, salt: string): Promise<Bip44Wallet>\r
+ static async fromMnemonic (key: CryptoKey, mnemonic: string, salt?: string): Promise<Bip44Wallet>\r
static async fromMnemonic (passkey: string | CryptoKey, mnemonic: string, salt: string = ''): Promise<Bip44Wallet> {\r
Bip44Wallet.#isInternal = true\r
try {\r