pub fn build_federation_admission_gate(
policy_client: Arc<PolicyClient>,
) -> Result<FederationAdmissionGate<PolicyOriginAdmission, DidWebResolver<HttpDidDocFetcher>>>Expand description
Assemble a ready-to-use FederationAdmissionGate over the real
PolicyService (stage 1) and a native did:web resolver (stage 2).
The resolver reuses the #279 HttpDidDocFetcher (TTL-cached, SSRF/DoS
hardened) — no new fetch/cache infrastructure. Construct this once and call
FederationAdmissionGate::admit per inbound federated peer with the
verified envelope-signer key and the peer’s origin + DID.
§Live proof seam
The caller must pass the peer’s authenticated Ed25519 key
(ApplicationSignerKey). Today that key is the verified COSE envelope signer key,
available at the service layer after verify_claims. A transport NodeId is
never a substitute for that application proof (#1031/#1027).