Skip to content

sgns::Blockchain::BlockchainCIDs

Public Functions

Name
bool hasGenesis() const
Checks whether a genesis CID is available.
bool hasAccount(const std::string & address) const
Checks whether an address has account-creation CID.
bool hasAnyAccount() const
Checks whether any account-creation CID exists.
bool isCompleteFor(const std::string & address) const
Checks whether both genesis and account CID exist for address.

Public Attributes

Name
std::optional< std::string > genesis_
Selected genesis CID.
std::unordered_map< std::string, std::string > account_creation_
Selected account-creation CIDs keyed by address.

Public Functions Documentation

function hasGenesis

inline bool hasGenesis() const

Checks whether a genesis CID is available.

Return: true when genesis CID exists.

function hasAccount

inline bool hasAccount(
    const std::string & address
) const

Checks whether an address has account-creation CID.

Parameters:

  • address Account address key.

Return: true when address entry exists.

function hasAnyAccount

inline bool hasAnyAccount() const

Checks whether any account-creation CID exists.

Return: true when at least one account entry exists.

function isCompleteFor

inline bool isCompleteFor(
    const std::string & address
) const

Checks whether both genesis and account CID exist for address.

Parameters:

  • address Account address key.

Return: true when both required CIDs are present.

Public Attributes Documentation

variable genesis_

std::optional< std::string > genesis_;

Selected genesis CID.

variable account_creation_

std::unordered_map< std::string, std::string > account_creation_;

Selected account-creation CIDs keyed by address.


Updated on 2026-06-05 at 17:22:18 -0700