Let the code prove tracker connections instead of the user
Both sides derive an HMAC key from the code, next to the swarm ID, and sign their role and both DTLS fingerprints as they see them. An interposer or a peer that found the swarm without the code can't, so its connection ends and the next peer gets its turn, as does one that proves nothing within 10 s. Tracker transfers need no comparing and no clicks anymore, the manual exchange keeps its fingerprint check. The swarm ID changes once more, old and new clients don't find each other. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
707248f36b
commit
c6145b8919
4 files changed
+193
-89
No files matched your search
@@ -57,11 +57,6 @@
|
||||
|
||||
## Ideas
|
||||
|
||||
- Let the code confirm the connection instead of the user: both sides derive a second key from the
|
||||
code and send an HMAC over both DTLS fingerprints. An interposer without the code can't forge it,
|
||||
so the manual comparison and a careless confirm would no longer matter. Changes the protocol and
|
||||
the check UI, WebCrypto is enough.
|
||||
|
||||
- Resume interrupted transfers: the receiver already reports how much the download manager has
|
||||
read (`{ read }`), which is where a new connection could continue. The browser can't append to a
|
||||
finished or failed download though, so a resume would have to start a new one.
|
||||
|
||||
Reference in new issue
Block a user