encode method
Encodes the provided entropy bytes into a Monero mnemonic with a checksum.
-entropyBytes: The entropy bytes to encode.
Implementation
@override
Mnemonic encode(List<int> entropyBytes) {
final List<String> words = _encodeToList(entropyBytes);
final String checksumWord = MoneroMnemonicUtils.computeChecksum(
words,
language,
);
return Mnemonic.fromList([...words, checksumWord]);
}