struct
RelayA stake pool relay registration.
CDDL description:
relay = [ single_host_addr // single_host_name // multi_host_name ] single_host_addr = ( 0 , port / null , ipv4 / null , ipv6 / null ) single_host_name = ( 1 , port / null , dns_name ; An A or AAAA DNS record ) multi_host_name = ( 2 , dns_name ; A SRV DNS record )
Base classes
- struct cardano::ArraySerializable
- Virtual struct defining CBOR array serializability.
Public types
- struct MultiHostName
- Pool relay(s) registration specified by DNS name.
- struct SingleHostAddr
- Pool relay registration specified by host IP address and port.
- struct SingleHostName
- Pool relay registration specified by DNS name and port.
Public functions
-
void deserialize(std::
span<const uint8_t> bytes) - Deserialize CBOR byte vector.
- auto deserializer(const cppbor::Array& data) → void final virtual
- Populate the object from the CBOR data.
-
auto serialize() const → std::
vector<uint8_t> - Serialize the object as a CBOR byte vector.
- auto serializer() const → cppbor::Array final virtual
- Populate a CBOR object for serialization.
Function documentation
void final cardano:: shelley:: Relay:: deserializer(const cppbor::Array& data) virtual
Populate the object from the CBOR data.
Parameters | |
---|---|
data | CBOR array object. |
cppbor::Array final cardano:: shelley:: Relay:: serializer() const virtual
Populate a CBOR object for serialization.
Returns | CBOR array object. |
---|