Visual RFC.
ALL RFCs / RFC 8949
Read the RFC ↗
RFC 8949 / MECHANISM GUIDE

Strings and containers

02

Byte strings, UTF-8 text, arrays, and maps have distinct major types.

RFC 8949 · § 3.1EXAMPLE
3 / 3
03
Compare a map

A1 61 61 01 represents one text key a mapped to 1.

Strings and containersByte strings, UTF-8 text, arrays, and maps have distinct major types.Strings and containersA1616101{"a": 1}text key ainteger 1

Key idea: Byte strings are arbitrary bytes; text strings contain UTF-8.

Terms

Look up a term in the glossary ↗

Rules & examples
  • Byte strings are arbitrary bytes; text strings contain UTF-8.
  • Arrays contain ordered items; maps contain key/value pairs.
  • A protocol must define how map keys and duplicate keys are handled.

Examples are illustrative. Consult the linked RFC and its errata for implementation details.

Sources
Protocol participantThreat or exceptionProtocol controlSimplified drawings · precise section references
New to this? Start hereA quick picture + helpful background

First, agree how to read the message.

An encoding tells a reader how to interpret bytes. A format tells it how values fit together. Correctly reading a value does not make that value trustworthy.

Helpful first, if these ideas are unfamiliar

These pictures are analogies to help you learn. The linked RFC explains the actual rules.

Related RFCs and changes

“Updates” changes part of an earlier RFC. “Obsoletes” replaces it. This list shows selected related documents.

All chapters in RFC 8949

Drawing view

Scroll the drawing to see every part. Playback controls stay above it.

RFC 9700 / CHAPTERS

Chapters

For full details, tables, algorithms, and exceptions, read the original RFC.

RFC status and corrections ↗