BIP39.fromEntropy constructor

BIP39.fromEntropy(
  1. String entropy, {
  2. Language language = Language.english,
  3. String passphrase = "",
})

Implementation

factory BIP39.fromEntropy(String entropy,
    {Language language = Language.english, String passphrase = ""}) {
  // check if entropy is valid
  if (validateEntropy(entropy) == false) {
    throw ArgumentError(_invalidEntropy);
  }
  return BIP39(
      language: language,
      entropy: _hexToBytes(entropy),
      passphrase: passphrase);
}