Mnemonic class

This class implements the Bip39 spec.

See: The Bip39 Spec

Mnemonic seeds provide a means to derive a private key from a standard, indexed dictionary of words. This is a popular means for wallets to provide backup and recovery functionality to users.

Constructors

Mnemonic({Wordlist wordList = Wordlist.ENGLISH})
Construct a new Mnemonic instance

Properties

DEFAULT_WORDLIST Wordlist
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
loadWordResource Future<String> Function(Wordlist? wordlist, String wordListName)
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

generateMnemonic({int strength = 128, RandomBytes randomBytes = _nextBytes}) Future<String>
Generates a random mnemonic.
generateMnemonic2(Future<String> loader(Wordlist? wordlist, String wordListName), {int strength = 128, RandomBytes randomBytes = _nextBytes}) Future<String>
getWordList(Wordlist wordList) Future<List<String>?>
Returns the full list of words for the named word list
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toSeed(String mnemonic, [String password = '']) Uint8List
Converts mnemonic code to seed.
toSeedHex(String mnemonic, [String password = '']) String
Converts mnemonic code to seed, as hex string.
toString() String
A string representation of this object.
inherited
validateMnemonic(String mnemonic) Future<bool>
Checks a mnemonic string for validity against the known word list
validateMnemonic2(String mnemonic, Future<String> loader(Wordlist? wordlist, String wordListName)) Future<bool>

Operators

operator ==(Object other) bool
The equality operator.
inherited