cardano::ByronAddress::Attributes struct

The attributes of a ByronAddress.

Public static functions

static auto fromKey(const bip32_ed25519::PublicKey& xpub, std::span<const uint32_t> path, uint32_t magic = 0) →  Attributes

Constructors, destructors, conversion operators

Attributes() defaulted
Attributes(std::vector<uint8_t> bytes, uint32_t network_magic)

Public variables

std::vector<uint8_t> ciphertext
Address derivation path ciphertext.
uint32_t magic
Protocol magic (if not 0, then its a testnet).

Function documentation

static Attributes cardano::ByronAddress::Attributes::fromKey(const bip32_ed25519::PublicKey& xpub, std::span<const uint32_t> path, uint32_t magic = 0)

Factory method to create an attributes object from a root public key and unencrypted path. The key is used to encrypt the address derivation path and the resulting ciphertext stored in the object.

cardano::ByronAddress::Attributes::Attributes() defaulted

Default Constructor The default constructor is needed for the default ByronAddress constructor to exist.

cardano::ByronAddress::Attributes::Attributes(std::vector<uint8_t> bytes, uint32_t network_magic)

Constructor Take ownership of the chipertext vector (move it into the object).