Bip39MnemonicValidator class
Validates BIP39 mnemonics based on a specified language.
The Bip39MnemonicValidator
class is responsible for validating BIP39 mnemonics
by using the Bip39MnemonicDecoder
for decoding and checking the correctness of
the mnemonic phrase. It ensures that the provided mnemonic follows the specified
language's word list and can be successfully decoded.
The isValid method can be used to check the validity of a given
mnemonic phrase.
- Inheritance
-
- Object
- MnemonicValidator<
Bip39MnemonicDecoder> - Bip39MnemonicValidator
Constructors
- Bip39MnemonicValidator([Bip39Languages? language])
- Creates a new instance of the Bip39MnemonicValidator.
Properties
- decoder → Bip39MnemonicDecoder
-
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
isValid(
String mnemonic) → bool -
Checks if a given
mnemonic
phrase is valid.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
validate(
String mnemonic) → void -
Validates a given
mnemonic
phrase using the associated decoder.inherited -
validateWords(
String mnemonic) → bool
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited