pub(crate) fn resolve_moq_relay_reach(
relay_uri: &str,
) -> Result<TransportConfig>Expand description
Resolve a service’s verifying key via the global trust store.
On first call in CLI mode, seeds the trust store from bootstrap-pubkeys. Used by CLI command handlers that don’t have a ServiceContext but need to verify responses from a target service.
Returns None if bootstrap-pubkeys is not available (wizard not run).
Resolve the configured [quic] relay URI into the wire-reach
TransportConfig a producer advertises as its Role::Relay reach (#358).
Reuses the SAME hyprstream_rpc::service_entry codec the DID document uses
(by constructing the equivalent QuicTransport service entry and decoding it),
then projecting to wire-reach form via
hyprstream_rpc::moq_stream::relay_reach_from_decoded — so the advertised
stream relay and the DID transport address are produced by one codec and never
drift. WebPKI (public PDS / federation anchor) is the default; a self-signed
mesh relay carries its leaf-cert SHA-256 pins after # in the URI fragment.