substrate_bip39_seed_generator
Module for Substrate mnemonic seed generation.
- class SubstrateBip39SeedGenerator(mnemonic: Union[str, Mnemonic], lang: Optional[Bip39Languages] = None)
Bases:
IBip39SeedGenerator
Substrate BIP39 seed generator class. It implements a variant for generating seed introduced by Polkadot. Reference: https://github.com/paritytech/substrate-bip39
- m_entropy_bytes: bytes
- Generate(passphrase: str = '') bytes
Generate the seed using the specified passphrase.
- Parameters:
passphrase (str, optional) – Passphrase, empty if not specified
- Returns:
Generated seed
- Return type:
bytes