mirror of
https://github.com/spacedriveapp/spacedrive.git
synced 2025-12-11 20:15:30 +01:00
1002 B
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 |
|
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
NetworkingServiceinsrc/services/networking/core/mod.rsencapsulates the IrohEndpoint. - The
NetworkingEventLoopprocesses 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.