hd_wallet_enum_dict

Module with enum dictionary class.

class HdWalletEnumDict(key_enum: Type[Enum])

Bases: object

HD wallet enum dictionary class. It allows a dictionary to be accessed using enum as string keys. It shall be inherited by all classes needed to use dictionaries to be accessed by enums.

m_key_enum: Type[Enum]
m_dict_data: Dict[str, Any]
KeyEnum() Type[Enum]

Get key enumerative type.

Returns:

Key enumerative type

Return type:

Enum

ToDict() Dict[str, Any]

Get keys as a dictionary.

Returns:

Keys as a dictionary

Return type:

dict

ToJson(json_indent: int = 4) str

Get keys as string in JSON format.

Parameters:

json_indent (int, optional) – Indent for JSON format, 4 by default

Returns:

Keys as string in JSON format

Return type:

str