BIP39.fromEntropy constructor
BIP39.fromEntropy(})
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);
}