Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Protocol

This part is the public wire contract. A frame carries one message, a sequence number, wire ticks, predictor presence codes, a bit-packed payload and a CRC.

The protocol is deliberately small:

  • Bits are packed least-significant bit first; multi-byte integers are little-endian.
  • The receiver never supplies a wall clock to feed; it uses wire ticks only.
  • Sequence numbers are 8 bits and wrap at 256.
  • Every rejected frame must leave predictor state unchanged.

Read the chapters in order:

The golden vectors in tests/vectors/ and the Python reference model in tests/reference/ are executable interpretations of this contract. They are part of the test suite, not optional examples.