BIP39 class
Class for handling BIP-39 mnemonic generation and validation.
Constructors
- BIP39({Bip39Language language = Bip39Language.english})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- language → Bip39Language
-
List of BIP-39 mnemonic words for the selected language.
List
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
entropyToMnemonic(
String entropyString) → String - Converts binary entropy data to a BIP-39 mnemonic phrase.
-
generateMnemonic(
{Bip39WordLength strength = Bip39WordLength.words12}) → String - Generates a BIP-39 mnemonic phrase with the specified strength. Generates a random BIP-39 mnemonic phrase of a specified word length.
-
mnemonicToEntropy(
String mnemonic) → String - Converts a BIP-39 mnemonic phrase to entropy bytes.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
validateMnemonic(
String mnemonic) → bool - Validates a BIP-39 mnemonic phrase. Validates a BIP-39 mnemonic phrase.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited