electrum_v1_seed_generator

Module for Electrum v1 mnemonic seed generation.

class ElectrumV1SeedGeneratorConst

Bases: object

Class container for Electrum v1 seed generator constants.

HASH_ITR_NUM: int = 100000
class ElectrumV1SeedGenerator(mnemonic: Union[str, Mnemonic], lang: Optional[ElectrumV1Languages] = ElectrumV1Languages.ENGLISH)

Bases: object

Electrum seed generator class (v1). It generates the seed from a mnemonic.

m_seed: bytes
Generate() bytes

Generate seed. There is no really need of this method, since the seed is always the same, but it’s kept in this way to have the same usage of Bip39/Substrate seed generator (i.e. ElectrumV1SeedGenerator(mnemonic).Generate() ).

Returns:

Generated seed

Return type:

bytes