Skip to content

sgns::trustedpeer

Namespaces

Name
sgns::trustedpeer::genesis_ceremony_platform

Classes

Name
class sgns::trustedpeer::CanonicalTrustCodec
struct sgns::trustedpeer::ConfirmedBurnState
struct sgns::trustedpeer::ConfirmedTrustSnapshot
class sgns::trustedpeer::GenesisCeremony
Validates, reviews, submits, confirms, and cleans up an ephemeral bootstrap key without involving account storage.
struct sgns::trustedpeer::GenesisManifest
class sgns::trustedpeer::LocalTrustAdmin
struct sgns::trustedpeer::QuorumPolicyState
class sgns::trustedpeer::TrustedPeerListPayload
ISignedCRDTData payload type carrying the trusted-peer list. Serialization is a newline-joined encoding of the peer address list (addresses are 128-char hex strings and never contain ' '). Verify() performs structural validation ONLY (non-empty, no duplicates, each entry exactly 128 lowercase-hex characters) – it never diffs against any cached/mutable state (Pitfall 4).
class sgns::trustedpeer::TrustedPeerRegistry
Genesis-seeded, in-memory-cached, quorum-updatable trusted-peer set. Delegates ALL signature/quorum logic to SecureCrdt / SecureCrdtRegistry – no bespoke signature/quorum logic exists here (TPR-03).
class sgns::trustedpeer::TrustStateStore
Synchronous, network-scoped last-known-good trust store.

Types

Name
enum class uint8_t BurnAuthorizationKind

Functions

Name
sgns::securecrdt::CandidateCore GenesisCandidateCore(const GenesisManifest & manifest, const std::vector< uint8_t > & canonical_bytes, const std::string & fingerprint, const std::string & domain ="trusted-peer-genesis")
bool ValidateQuorumPolicy(const QuorumPolicyState & policy)
bool ValidatePolicySuccessor(const QuorumPolicyState & current, const QuorumPolicyState & candidate)
std::string BurnGenesisAnchorHash(const std::string & genesis_fingerprint)

Types Documentation

enum BurnAuthorizationKind

Enumerator Value Description
BootstrapOnly 0
PeerQuorum

Functions Documentation

function GenesisCandidateCore

sgns::securecrdt::CandidateCore GenesisCandidateCore(
    const GenesisManifest & manifest,
    const std::vector< uint8_t > & canonical_bytes,
    const std::string & fingerprint,
    const std::string & domain ="trusted-peer-genesis"
)

Single construction site of the genesis CandidateCore; the core bytes are the signed genesis proof everywhere, so duplicate constructions drift apart.

function ValidateQuorumPolicy

bool ValidateQuorumPolicy(
    const QuorumPolicyState & policy
)

function ValidatePolicySuccessor

bool ValidatePolicySuccessor(
    const QuorumPolicyState & current,
    const QuorumPolicyState & candidate
)

function BurnGenesisAnchorHash

std::string BurnGenesisAnchorHash(
    const std::string & genesis_fingerprint
)

Domain-separated predecessor used by the deterministic burn v1 candidate.


Updated on 2026-10-10 at 04:54:21 +0000