algorand_mnemonic_encoder

Module for Algorand mnemonic encoding. Reference: https://github.com/algorand/py-algorand-sdk

class AlgorandMnemonicEncoder(lang: AlgorandLanguages = AlgorandLanguages.ENGLISH)

Bases: MnemonicEncoderBase

Algorand mnemonic encoder class. It encodes bytes to the mnemonic phrase.

Encode(entropy_bytes: bytes) Mnemonic

Encode bytes to mnemonic phrase.

Parameters:

entropy_bytes (bytes) – Entropy bytes

Returns:

Encoded mnemonic

Return type:

Mnemonic object

Raises:

ValueError – If bytes length is not valid

m_words_list: MnemonicWordsList