DiscoverycertAlgoCreate
Python pydantic class corresponding to json type `discoverycert.algo.create`
.
- class gwatn.types.DiscoverycertAlgoCreate(*, GNodeAlias, Role, OldChildAliasList, DiscovererAddr, SupportingMaterialHash, MicroLat=None, MicroLon=None, TypeName='discoverycert.algo.create', Version='000')
- Parameters:
GNodeAlias (str) –
Role (CoreGNodeRole) –
OldChildAliasList (List[str]) –
DiscovererAddr (str) –
SupportingMaterialHash (str) –
MicroLat (int | None) –
MicroLon (int | None) –
TypeName (Literal['discoverycert.algo.create']) –
Version (str) –
- GNodeAlias:
Description:
Format: LeftRightDot
- Role:
Description:
- OldChildAliasList:
Description:
Format: LeftRightDot
- DiscovererAddr:
Description:
Format: AlgoAddressStringFormat
- SupportingMaterialHash:
Description:
- MicroLat:
Description:
- MicroLon:
Description:
- class gwatn.types.discoverycert_algo_create.check_is_left_right_dot(v)
LeftRightDot format: Lowercase alphanumeric words separated by periods, most significant word (on the left) starting with an alphabet character.
- Raises:
ValueError – if not LeftRightDot format
- Parameters:
v (str) –
- class gwatn.types.discoverycert_algo_create.check_is_algo_address_string_format(v)
AlgoAddressStringFormat format: The public key of a private/public Ed25519 key pair, transformed into an Algorand address, by adding a 4-byte checksum to the end of the public key and then encoding in base32.
- Raises:
ValueError – if not AlgoAddressStringFormat format
- Parameters:
v (str) –
- class gwatn.types.DiscoverycertAlgoCreate_Maker(g_node_alias, role, old_child_alias_list, discoverer_addr, supporting_material_hash, micro_lat, micro_lon)
- Parameters:
g_node_alias (str) –
role (CoreGNodeRole) –
old_child_alias_list (List[str]) –
discoverer_addr (str) –
supporting_material_hash (str) –
micro_lat (int | None) –
micro_lon (int | None) –
- classmethod tuple_to_type(tuple)
Given a Python class object, returns the serialized JSON type object
- Parameters:
tuple (DiscoverycertAlgoCreate) –
- Return type:
str
- classmethod type_to_tuple(t)
Given a serialized JSON type object, returns the Python class object
- Parameters:
t (str) –
- Return type: