algorand_entropy_generator

Module for Algorand mnemonic entropy generation.

class AlgorandEntropyBitLen(value)

Bases: IntEnum

Enumerative for Algorand entropy bit lengths.

BIT_LEN_256 = 256
class AlgorandEntropyGeneratorConst

Bases: object

Class container for Algorand entropy generator constants.

ENTROPY_BIT_LEN: List[AlgorandEntropyBitLen] = [<AlgorandEntropyBitLen.BIT_LEN_256: 256>]
class AlgorandEntropyGenerator(bit_len: Union[int, AlgorandEntropyBitLen] = AlgorandEntropyBitLen.BIT_LEN_256)

Bases: EntropyGenerator

Algorand entropy generator class. It generates random entropy bytes.

static IsValidEntropyBitLen(bit_len: int) bool

Get if the specified entropy bit length is valid.

Parameters:

bit_len (int) – Entropy length in bits

Returns:

True if valid, false otherwise

Return type:

bool

static IsValidEntropyByteLen(byte_len: int) bool

Get if the specified entropy byte length is valid.

Parameters:

byte_len (int) – Entropy length in bytes

Returns:

True if valid, false otherwise

Return type:

bool

m_bit_len: int