electrum_v2_mnemonic_decoder

Module for Electrum v2 mnemonic decoding. Reference: https://github.com/electrum/py-electrum-sdk

class ElectrumV2MnemonicDecoder(mnemonic_type: Optional[ElectrumV2MnemonicTypes] = None, lang: Optional[ElectrumV2Languages] = None)

Bases: MnemonicDecoderBase

Electrum v2 mnemonic decoder class. It decodes a mnemonic phrase to bytes.

m_mnemonic_type: Optional[ElectrumV2MnemonicTypes]
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: