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

+4 -3
View File
@@ -7,9 +7,10 @@ independent cryptographic audit.
## Authentication transcript
A device has an ECDSA P-256 key pair. An identity-enabled connection code uses
signaling envelope version 4 with a public key (65-byte uncompressed point,
lowercase hex) and a fresh 32-byte cryptographically random nonce. Both local
A device has an ECDSA P-256 key pair. An identity-enabled connection code
(see `src/lib/codes.ts` for the `HC1.` encoding) uses signaling envelope
version 4 with a public key (65-byte uncompressed point, lowercase hex) and a
fresh 32-byte cryptographically random nonce. Both local
and remote SDP fingerprints continue to be validated as full SHA-256 values.
Temporary codes use version 3. Old builds reject version 4 before connecting.
Current builds accept both; if either participant uses a temporary identity,