Bip39MnemonicEncoder class

BIP39 Mnemonic Encoder for generating mnemonic phrases.

This class is responsible for encoding entropy bytes into a BIP39 mnemonic phrase. It implements the MnemonicEncoderBase abstract class.

Example usage:

final entropy = List<int>.from([/* your entropy bytes here */]);
final encoder = Bip39MnemonicEncoder(Bip39Languages.english);
final mnemonic = encoder.encode(entropy);
print("Generated BIP39 mnemonic phrase: $mnemonic");
Inheritance

Constructors

Bip39MnemonicEncoder([Bip39Languages language = Bip39Languages.english])
Create a new instance of the BIP39 Mnemonic Encoder.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
wordsList MnemonicWordsList
The list of words used for encoding.
finalinherited

Methods

encode(List<int> entropyBytes) Bip39Mnemonic
Encode the provided entropy bytes into a BIP39 mnemonic phrase.
override
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