diff --git a/docs/ux-roadmap.md b/docs/ux-roadmap.md index c26f86d..bfff575 100644 --- a/docs/ux-roadmap.md +++ b/docs/ux-roadmap.md @@ -123,3 +123,33 @@ phase. Small contextual UI improvements can accompany each phase. Treat identity authentication and bidirectional framing as explicit design/review milestones. No new persistent data or backend is needed for phase 1. Deployments are separate from implementation; this document is the plan for the remaining phases. + +## Later: peer mesh (exploratory, unscheduled) + +Open HellCon tabs could assist each other so the tracker becomes a bootstrap +fallback rather than a requirement. This is an idea, not a commitment. + +**Peer-relayed signaling.** WebRTC only needs a channel for offer, answer and ICE +candidates. If A has verified sessions with B and C, and B and C are paired with +each other, A can forward their reconnect exchange over its data channels. Seal +and authenticate the payloads with the B–C pairing key and bind them to the DTLS +fingerprints, so A acts only as a mailbox and cannot interpose. A relay does not +create trust: introducing unpaired devices still requires manual verification. +Fall back to the pairing's tracker or manual codes when no shared peer is open. + +**Multi-source transfers.** Split a file into pieces hashed under a manifest +signed by the original sender. Any verified peer that holds pieces can serve +them; receivers check every piece against the manifest. Once one complete copy +exists, the sender may leave. Requesting only missing pieces also allows resuming +an interrupted transfer. This stays inside verified HellCon sessions: no public +swarms, no BitTorrent interoperability, and acceptance is still required per file. + +**Limits.** "Online" means an open tab; browsers cannot listen in the background +and service workers cannot hold WebRTC connections, so there is still no presence +or offline wake-up. Relayed signaling does not help NAT traversal; STUN and +explicit TURN consent remain unchanged. The relay sees which of its peers connect +to each other. + +**Preparation.** Keep the tracker reconnect adapter's announce/offer/answer layer +independent of the pairing logic and of its transport, so a data channel can carry +the same sealed exchange later. diff --git a/docs/webtorrent-reconnect.md b/docs/webtorrent-reconnect.md index a1f8a6f..1a1f4f8 100644 --- a/docs/webtorrent-reconnect.md +++ b/docs/webtorrent-reconnect.md @@ -95,6 +95,12 @@ tracker signaling requires no Nostr-style Schnorr signature library. Preserve HellCon's P-256 identity proofs; tracker peer IDs are routing identifiers only. Server-side dependencies are maintained separately from the browser bundle. +Keep the encrypted signaling exchange independent of the WebSocket transport. +The [peer mesh idea](ux-roadmap.md#later-peer-mesh-exploratory-unscheduled) may +later let an open, verified peer forward the same sealed exchange over a data +channel, leaving the tracker as a fallback. That idea is unscheduled and not part +of this plan. + ## Discovery and encrypted signaling Derive a 20-byte discovery identifier from the pairing secret with a dedicated