MnemonicDecoderBase class abstract

An abstract base class for mnemonic phrase decoding in various languages and word lists.

This class provides the foundation for decoding mnemonic phrases into binary data. It allows you to specify a language, a word list, and a words list finder to find the appropriate language and word list when decoding.

Implementers

Constructors

MnemonicDecoderBase({MnemonicLanguages? language, required MnemonicWordsListFinderBase wordsListFinder, required MnemonicWordsListGetterBase wordsListGetter})
Creates a MnemonicDecoderBase instance with optional language and required components.

Properties

hashCode int
The hash code for this object.
no setterinherited
language MnemonicLanguages?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
wordsList MnemonicWordsList?
final
wordsListFinder MnemonicWordsListFinderBase
final

Methods

decode(String mnemonic) List<int>
Decodes the provided mnemonic phrase into binary data.
findLanguage(Mnemonic mnemonic) Tuple<MnemonicWordsList, MnemonicLanguages>
Finds the language and word list for a given mnemonic phrase.
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