spacedrive/.tasks/NET-001-iroh-p2p-stack.md
2025-09-06 21:00:37 -04:00

1002 B

id, title, status, assignee, parent, priority, tags, whitepaper
id title status assignee parent priority tags whitepaper
NET-001 Unified P2P Stack with Iroh Done james NET-000 High
networking
iroh
p2p
Section 4.5.2

Description

The networking layer will be built using the Iroh library. A single, unified NetworkingService manages one Iroh endpoint that handles all P2P communication, including device discovery, pairing, and file transfers.

Implementation Notes

  • The NetworkingService in src/services/networking/core/mod.rs encapsulates the Iroh Endpoint.
  • The NetworkingEventLoop processes all incoming connections and routes them to the appropriate protocol handler based on ALPNs.
  • Device identity is managed by src/services/networking/utils/identity.rs, which derives Iroh keys from the master device key.

Acceptance Criteria

  • The core has a single, unified NetworkingService.
  • The service can bind to a port and establish an Iroh Endpoint.
  • Device discovery on a local network is functional.