monero_entropy_generator
Module for Monero entropy generation.
- class MoneroEntropyBitLen(value)
Bases:
IntEnum
Enumerative for Monero entropy bit lengths.
- BIT_LEN_128 = 128
- BIT_LEN_256 = 256
- class MoneroEntropyGeneratorConst
Bases:
object
Class container for Monero entropy generator constants.
- ENTROPY_BIT_LEN: List[MoneroEntropyBitLen] = [<MoneroEntropyBitLen.BIT_LEN_128: 128>, <MoneroEntropyBitLen.BIT_LEN_256: 256>]
- class MoneroEntropyGenerator(bit_len: Union[int, MoneroEntropyBitLen])
Bases:
EntropyGenerator
Monero entropy generator class. It generates random entropy bytes with the specified length.
- static IsValidEntropyBitLen(bit_len: Union[int, MoneroEntropyBitLen]) bool
Get if the specified entropy bit length is valid.
- Parameters:
bit_len (int or MoneroEntropyBitLen) – 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