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¶
Checks whether a genesis CID is available.
Return: true when genesis CID exists.
function hasAccount¶
Checks whether an address has account-creation CID.
Parameters:
- address Account address key.
Return: true when address entry exists.
function hasAnyAccount¶
Checks whether any account-creation CID exists.
Return: true when at least one account entry exists.
function isCompleteFor¶
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_¶
Selected genesis CID.
variable account_creation_¶
Selected account-creation CIDs keyed by address.
Updated on 2026-06-05 at 17:22:18 -0700