Recover a private key from a mnemonic phrase compatible with the iOS and Android wallets
PrivateKey.fromMnemonic(<mnemonic, passphrase>)
Mnemonic. String
Recover a private key from a generated mnemonic phrase and a passphrase
//Use the mnemonic to recover the private keyPrivateKey privateKey =PrivateKey.fromMnemonic(mnemonic);PublicKey publicKey =privateKey.publicKey();//v2.0.0
//Use a recovered mnemonic to recover the private keyconst recoveredMnemonic = await Mnemonic.fromString(mnemonic.toString());const privateKey = await recoveredMnemonic.toPrivateKey();//v2.0.5