mnemonicToSeedHex function

String mnemonicToSeedHex(
  1. String mnemonics
)

Derive the seed in hex format from mnemonic with empty password.

Implementation

String mnemonicToSeedHex(String mnemonics) {
  if (!isValidMnemonics(mnemonics)) {
    throw ArgumentError("Invalid mnemonics");
  }

  return bip39.mnemonicToSeedHex(mnemonics, passphrase: "");
}