TonMnemonicGenerator class
The TonMnemonicGenerator class is responsible for generating BIP-39 mnemonic phrases either from a specified number of words or directly from entropy bytes.
Constructors
- TonMnemonicGenerator([TonMnemonicLanguages language = TonMnemonicLanguages.english])
- Constructor initializes the mnemonic encoder with the specified language. Defaults to English if no language is specified.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
fromEntropy(
List< int> entropyBytes) → Mnemonic - Encodes the given entropy bytes into a mnemonic phrase using the encoder.
-
fromWordsNumber(
int wordsNum, {String password = ""}) → Mnemonic - Generates a mnemonic phrase from a specified number of words, ensuring it is valid according to the TOM mnemonic validator.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited