* @returns {Blake2bWallet} A newly instantiated Blake2bWallet\r
*/\r
static async fromMnemonic (key: CryptoKey, mnemonic: string): Promise<Blake2bWallet>\r
- static async fromMnemonic (password: string | CryptoKey, mnemonic: string): Promise<Blake2bWallet> {\r
+ static async fromMnemonic (passkey: string | CryptoKey, mnemonic: string): Promise<Blake2bWallet> {\r
Blake2bWallet.#isInternal = true\r
try {\r
const m = await Bip39Mnemonic.fromPhrase(mnemonic)\r
const s = await m.toBlake2bSeed()\r
const wallet = new this(s, m)\r
- await wallet.lock(password as string)\r
+ await wallet.lock(passkey as string)\r
return wallet\r
} catch (err) {\r
throw new Error(`Error importing Blake2bWallet from mnemonic: ${err}`)\r