Constant APNS_IDENTITY

Source
pub const APNS_IDENTITY: &[u8] = b"/fastn/entity/0.1";
Expand description

Single ALPN protocol identifier for all fastn entity connections.

Each fastn instance is called an “entity” in the P2P network. Unlike Iroh’s recommended approach of using different ALPNs for different protocols, we use a single ALPN and multiplex protocols at the application layer. This avoids the overhead of multiple TLS handshakes when entities need to use multiple protocols (e.g., HTTP proxy + TCP tunnel + ping).

See module documentation for detailed rationale.