monero_mnemonic_decoder

Module for Monero mnemonic decoding.

class MoneroMnemonicDecoder(lang: Optional[MoneroLanguages] = None)

Bases: MnemonicDecoderBase

Monero mnemonic decoder class. It decodes a mnemonic phrase to bytes.

Decode(mnemonic: Union[str, Mnemonic]) bytes

Decode a mnemonic phrase to bytes (no checksum).

Parameters:

mnemonic (str or Mnemonic object) – Mnemonic

Returns:

Decoded bytes

Return type:

bytes

Raises:
m_lang: Optional[MnemonicLanguages]
m_words_list: Optional[MnemonicWordsList]
m_words_list_finder_cls: Type[MnemonicWordsListFinderBase]