pub(super) async fn verify_lan_signature(
state: &AppState,
req: &mut InjectionRequest,
)Expand description
LAN-tier per-agent Ed25519 signature check (docs/specs/SPEC_JEKT_LAN_TIER_SIGNING_2026_08_15.md
§2.4). Async because the claimed sender’s public key lives on whichever peer hosts that agent: a
LAN round trip (LanDiscoveryController::find_agent_lan_pubkey), unlike
verify_jekt_signature’s local lookup.
Only for delivery_tier == "lan"; handle_reactive_inject has already overridden the tier
server-side (spec §3), so this never runs off a request that wasn’t lan_key-authenticated.
No lan_sig, or no peer has the sender’s public key: lan_verified stays None (“nothing to
check against”, as for sig_verified/reagent_verified). A lan_sig with a key found that
doesn’t verify: Some(false), which handler.rs forces to TIER=sensitive, an active attempt
to forge an agent’s identity.