Use compressed connection codes in the transfer panel

Offers and answers now go through the HC1 codec: the sender creates a
ref per session and the answer must echo it, so pasting an offer as the
answer or an answer for another code is rejected with a specific message
while the live offer stays usable. Pasted input may be a full link.

webrtc.ts drops its Base64 JSON signaling and exchanges validated SDP
only; identity hellos travel in the code envelope. Tests, the browser
check, compare-ice and the docs follow the new format.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
SchluffeandClaude Opus 5.5 committed 2026-10-19 22:35:44 +02:00
1 parent da2999ed5d
commit 8bd37ac8b1
10 files changed
+68 -89

No files matched your search

+6
View File
@@ -32,6 +32,12 @@
longer read.
- Upgrade connection/session framing to v3 with per-file identifiers. Both peers
must update; v2 codes are rejected before connection setup.
- Connection codes are compressed to roughly half their length (`HC1.` plus
Base64url of deflated JSON). Each code states whether it is an offer or an
answer and carries a reference shared by both, so a pasted offer in the
answer field, or an answer to a different code, is rejected with a clear
message while the live offer stays valid. Codes may be pasted as part of a
link. Earlier 0.0.5 drafts' codes are rejected.
- New device identity private keys are non-extractable.
- Replace the receive-storage choice with a single **Accept file** button that
treats every file size the same: stream to Downloads where supported, else