Skip to main content

capsule_to_iroh_reach

Function capsule_to_iroh_reach 

Source
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:

  1. selects the requested NinePExport service entry — fail closed if the id is absent or the entry is the wrong type;
  2. requires that entry’s transport to be iroh — fail closed otherwise;
  3. 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.