DiscoverycertAlgoTransfer#

Python pydantic class corresponding to json type `discoverycert.algo.transfer`.

class gnf.types.DiscoverycertAlgoTransfer(*, GNodeAlias, DiscovererAddr, TypeName='discoverycert.algo.transfer', Version='000')#
Parameters:
  • GNodeAlias (str) –

  • DiscovererAddr (str) –

  • TypeName (Literal['discoverycert.algo.transfer']) –

  • Version (str) –

GNodeAlias:
  • Description:

  • Format: LeftRightDot

DiscovererAddr:
  • Description:

  • Format: AlgoAddressStringFormat

class gnf.types.discoverycert_algo_transfer.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 gnf.types.discoverycert_algo_transfer.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 gnf.types.DiscoverycertAlgoTransfer_Maker(g_node_alias, discoverer_addr)#
Parameters:
  • g_node_alias (str) –

  • discoverer_addr (str) –

classmethod tuple_to_type(tuple)#

Given a Python class object, returns the serialized JSON type object

Parameters:

tuple (DiscoverycertAlgoTransfer) –

Return type:

str

classmethod type_to_tuple(t)#

Given a serialized JSON type object, returns the Python class object

Parameters:

t (str) –

Return type:

DiscoverycertAlgoTransfer