Skip to main content

Module plc_directory

Module plc_directory 

Source
Expand description

#1342 A — operable Hybrid did:plc directory.

Adds authority-bound genesis registration and verified/live resolution without adding a write path to the federated PLC resolver. Operable, fail-closed directory for Hyprstream’s hybrid did:plc log.

This is deliberately separate from hyprstream_rpc::did_plc: that module remains the read-only federation resolver for classical PLC directories. This module owns only locally registered hybrid identities and never stores or returns a tenant.

Directory records contain canonical operation bytes and a PDS endpoint. They do not contain live transport reach. Every identity read decodes and verifies the complete operation log with crate::did_op::verify_did_op_log. Every connect-time read then asks LivePlcDiscovery for current reach, so certificate rotation cannot leave stale pins on an inventory/directory row.

Structs§

ConnectTimeDiscovery
Frontend connect-time discovery contract.
InMemoryPlcDirectoryStore
In-memory store for embedded/demo deployments.
PlcDirectory
Operable directory over canonical Hybrid DID operation logs.
PlcDirectoryRecord
Persistence shape for one directory identity.
ResolvedPlcIdentity
Current verified identity state.
SignedPlcDirectoryGenesis
Hybrid-signed binding between operation zero and its PDS resolution pointer.

Traits§

DidOpSuccessorWitness
Future authorization seam for a post-genesis successor.
LivePlcDiscovery
Resolver for live PDS transport metadata.
PlcDirectoryStore
Atomic genesis storage used by the operable directory.