pub fn capsule_to_iroh_reach(
verified: &VerifiedCapsule,
service: Option<&str>,
) -> Result<TransportConfig>Expand description
Map a GATE-verified did:at9p capsule to a dialable iroh
TransportConfig, selecting the NinePExport service entry named service
(default DEFAULT_AT9P_SERVICE).
This is the pure, I/O-free core of D1 — a sibling to
service_entry::decode_iroh. It takes a VerifiedCapsule (so GATE has
already passed before this is reachable) and:
- selects the requested
NinePExportservice entry — fail closed if the id is absent or the entry is the wrong type; - requires that entry’s transport to be iroh — fail closed otherwise;
- rejects the capsule because the current schema has no independent carrier EndpointId. The signed relay remains a reach claim, but cannot turn the genesis subject identity key into a live dial target.