cardano_icarus_mst_key_generator
Module for Cardano Icarus master key generation.
References
https://input-output-hk.github.io/cardano-wallet/concepts/master-key-generation https://cips.cardano.org/cips/cip3/icarus.md
- class CardanoIcarusMasterKeyGeneratorConst
Bases:
object
Class container for Cardano Icarus master key generator constants.
- PBKDF2_PASSWORD: str = ''
- PBKDF2_ROUNDS: int = 4096
- PBKDF2_OUT_BYTE_LEN: int = 96
- class CardanoIcarusMstKeyGenerator
Bases:
IBip32MstKeyGenerator
Cardano Icarus master key generator class. It allows master keys generation in according to Cardano Icarus.
- classmethod GenerateFromSeed(seed_bytes: bytes) Tuple[bytes, bytes]
Generate a master key from the specified seed.
- Parameters:
seed_bytes (bytes) – Seed bytes
- Returns:
Private key bytes (index 0) and chain code bytes (index 1)
- Return type:
tuple[bytes, bytes]
- Raises:
Bip32KeyError – If the seed is not suitable for master key generation
ValueError – If seed length is not valid