cardano::shelley::StakeCredential struct

A stake credential.

CDDL description:

stake_credential =
  [  0, addr_keyhash
  // 1, scripthash
  ]

Base classes

struct cardano::ArraySerializable
Virtual struct defining CBOR array serializability.

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 virtual
Populate a CBOR object for serialization.

Function documentation

void final cardano::shelley::StakeCredential::deserializer(const cppbor::Array& data) virtual

Populate the object from the CBOR data.

Parameters
data CBOR array object.

cppbor::Array cardano::shelley::StakeCredential::serializer() const virtual

Populate a CBOR object for serialization.

Returns CBOR array object.