hd_wallet_keys_base

Module with base class for wallet keys.

class HdWalletKeysBase(key_enum: Type[Enum])

Bases: HdWalletEnumDict

HD wallet keys base class. It shall be inherited by wallet keys classes.

HasKey(key: HdWalletKeyTypes) bool

Get if the specified key is present.

Parameters:

key (HdWalletKeyTypes) – Key

Returns:

True if present, false otherwise

Return type:

bool

Raises:

TypeError – If the enumerative is not of the correct type

GetKey(key: HdWalletKeyTypes) Optional[str]

Get the specified key value.

Parameters:

key (HdWalletKeyTypes) – Key

Returns:

Key value None: If the key type is not found

Return type:

str

Raises:

TypeError – If the enumerative is not of the correct type

m_key_enum: Type[Enum]
m_dict_data: Dict[str, Any]