Skip to content

sgns::peerregistry

Classes

Name
class sgns::peerregistry::PeerRegistry
Interface of an authorization authority that resolves the current authorized peer set and its quorum threshold from cached state. SecureCrdtRegistryEntry carries an optional shared_ptr to the PeerRegistry instance owning the registered key pattern, making the per-key association explicit instead of implicitly assuming TrustedPeerRegistry (D-04).

Functions

Name
sgns::securecrdt::SignerSetSource MakeRegistrySignerSetSource(std::shared_ptr< PeerRegistry > registry)
Builds a securecrdt::SignerSetSource forwarding to registry's CurrentSignerSet() (the cached-only path). Lives here rather than in SecureCrdtRegistry.hpp so SecureCrdtRegistry.hpp only needs a forward declaration of PeerRegistry, avoiding an include cycle.

Functions Documentation

function MakeRegistrySignerSetSource

inline sgns::securecrdt::SignerSetSource MakeRegistrySignerSetSource(
    std::shared_ptr< PeerRegistry > registry
)

Builds a securecrdt::SignerSetSource forwarding to registry's CurrentSignerSet() (the cached-only path). Lives here rather than in SecureCrdtRegistry.hpp so SecureCrdtRegistry.hpp only needs a forward declaration of PeerRegistry, avoiding an include cycle.

Parameters:

  • registry Registry whose cached signer set authorizes the key.

Return: SignerSetSource lambda capturing the registry shared_ptr.


Updated on 2026-10-06 at 13:34:20 +0000