GwCertId#
Python pydantic class corresponding to json type `gw.cert.id`
.
- class gnf.types.GwCertId(*, Type, Idx=None, Addr=None, TypeName='gw.cert.id', Version='000')#
Clarifies whether cert id is an Algorand Standard Asset or SmartSig
- Parameters:
Type (AlgoCertType) –
Idx (int | None) –
Addr (str | None) –
TypeName (Literal['gw.cert.id']) –
Version (str) –
- classmethod check_axiom_1(v)#
Axiom 1: Cert type consistency. If Type is ASA, then Id exists and Addr does not. Otherwise, Addr exists and Id does not.
- Parameters:
v (dict) –
- Return type:
dict
- Type:
Description:
- Idx:
Description: ASA Index
- Addr:
Description: Algorand Smart Signature Address
Format: AlgoAddressStringFormat
- class gnf.types.gw_cert_id.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) –