bip39_entropy_generator
Module for BIP39 mnemonic entropy generation.
- class Bip39EntropyBitLen(value)
Bases:
IntEnum
Enumerative for BIP39 entropy bit lengths.
- BIT_LEN_128 = 128
- BIT_LEN_160 = 160
- BIT_LEN_192 = 192
- BIT_LEN_224 = 224
- BIT_LEN_256 = 256
- class Bip39EntropyGeneratorConst
Bases:
object
Class container for BIP39 entropy generator constants.
- ENTROPY_BIT_LEN: List[Bip39EntropyBitLen] = [<Bip39EntropyBitLen.BIT_LEN_128: 128>, <Bip39EntropyBitLen.BIT_LEN_160: 160>, <Bip39EntropyBitLen.BIT_LEN_192: 192>, <Bip39EntropyBitLen.BIT_LEN_224: 224>, <Bip39EntropyBitLen.BIT_LEN_256: 256>]
- class Bip39EntropyGenerator(bit_len: Union[int, Bip39EntropyBitLen])
Bases:
EntropyGenerator
BIP39 entropy generator class. It generates random entropy bytes with the specified length.
- static IsValidEntropyBitLen(bit_len: Union[int, Bip39EntropyBitLen]) bool
Get if the specified entropy bit length is valid.
- Parameters:
bit_len (int or Bip39EntropyBitLen) – 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