I'm developing a Hedera Wallet for Flutter, and I need to convert the mnemonic to the private key.
I use the bip39 to convert the mnemonic to seed.
But how can I convert the seed to the PrivateKey?
I'm developing a Hedera Wallet for Flutter, and I need to convert the mnemonic to the private key.
I use the bip39 to convert the mnemonic to seed.
But how can I convert the seed to the PrivateKey?
As per documentation here https://docs.hedera.com/hedera/sdks-and-apis/sdks/keys/recover-keys-from-a-mnemonic-phrase:
//Use a recovered mnemonic to recover the private key
const recoveredMnemonic = await Mnemonic.fromString(mnemonic.toString());
const privateKey = await recoveredMnemonic.toPrivateKey();
//v2.0.5