BasegnodeScadaCreate

Python pydantic class corresponding to json type `basegnode.scada.create`.

class gwatn.types.BasegnodeScadaCreate(*, TaAlias, ScadaAddr, TaDaemonAddr, GNodeRegistryAddr, SignedProof, TypeName='basegnode.scada.create', Version='000')

Scada BaseGNode Creation.

This is a payload designed to be sent from a TaOwner to the GNodeFactory. The TaOwner creates a private Algorand key and puts it on the Scada Device that will sense and control their TerminalAsset. The public address is associated with the Scada GNode by the GNodeFactory.

Parameters:
  • TaAlias (str) –

  • ScadaAddr (str) –

  • TaDaemonAddr (str) –

  • GNodeRegistryAddr (str) –

  • SignedProof (str) –

  • TypeName (Literal['basegnode.scada.create']) –

  • Version (str) –

classmethod check_axiom_1(v)

Axiom 1: TaOwner is SignedProof signer. The TaDaemonAddr provides the public address for the TaOwner. This TaOwnerAddr must match the signature on the SignedProof.

Parameters:

v (dict) –

Return type:

dict

classmethod check_axiom_2(v)

Axiom 2: TaAlias matches TaDeed. The TaDaemonAddr owns a TaDeed for the TaAlias.

Parameters:

v (dict) –

Return type:

dict

TaAlias:
  • Description: TerminalAsset Alias. GNodeAlias of the TerminalAsset that will be controlled by the new SCADA GNode. The SCADA GNodeAlias will have ‘.scada’ appended to this.

  • Format: LeftRightDot

ScadaAddr:
  • Description: Algorand address for the SCADA. The TaOwner makes the corresponding private key, puts it on the SCADA device, and then sends this address to the GNodeFactory.

  • Format: AlgoAddressStringFormat

TaDaemonAddr:
  • Description: Algorand address of the associated TaDaemon. The TaDaemonAddr will have the TaDeed, and can be used to verify the public address of the TaOwner

  • Format: AlgoAddressStringFormat

GNodeRegistryAddr:
  • Description: GNodeRegistry Algorand address. The GNodeRegistry that contains Make/Model information about the SCADA and TerminalAsset

  • Format: AlgoAddressStringFormat

SignedProof:
  • Description: Recent transaction signed by the TaOwner. These will be replaced by composite transactions in next gen code.

  • Format: AlgoMsgPackEncoded

class gwatn.types.basegnode_scada_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.basegnode_scada_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.basegnode_scada_create.check_is_algo_msg_pack_encoded(v)

AlgoMSgPackEncoded format: the format of an transaction sent to the Algorand blockchain.

Raises:

ValueError – if not AlgoMSgPackEncoded format

Parameters:

v (str) –

class gwatn.types.BasegnodeScadaCreate_Maker(ta_alias, scada_addr, ta_daemon_addr, g_node_registry_addr, signed_proof)
Parameters:
  • ta_alias (str) –

  • scada_addr (str) –

  • ta_daemon_addr (str) –

  • g_node_registry_addr (str) –

  • signed_proof (str) –

classmethod tuple_to_type(tuple)

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

Parameters:

tuple (BasegnodeScadaCreate) –

Return type:

str

classmethod type_to_tuple(t)

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

Parameters:

t (str) –

Return type:

BasegnodeScadaCreate