Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

plaintext: Clarify only handshake messages being framed #295

Merged
merged 3 commits into from
Mar 15, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions plaintext/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,11 @@ section of the connection establishment spec][conn-spec-protocol-negotiation].

### Message Framing

All messages sent over the wire are prefixed with the message length in bytes,
encoded as an unsigned variable length integer as defined by the [multiformats
unsigned-varint spec][uvarint-spec].
All [handshake messages](#messages) sent over the wire are prefixed with the
message length in bytes, encoded as an unsigned variable length integer as
defined by the [multiformats unsigned-varint spec][uvarint-spec]. Actual
payloads exchanged once the plaintext handshake has completed are NOT prefixed
with their lengths, but sent as-is.

### Exchange

Expand Down