ksp rfc
ksp rfc
Command ReferenceRead, search, or display specific sections of the official KSP RFC-0001 specification directly in your terminal.
Protocol Utilities
Purpose
Read, search, or display specific sections of the official KSP RFC-0001 specification directly in your terminal.
Syntax
Command-line specificationbash / powershell
ksp rfc [SECTION_NUMBER | SEARCH_TERM] [OPTIONS]
Arguments
| Argument | Description |
|---|---|
| [SECTION_NUMBER | SEARCH_TERM] | Section clause (e.g., `7.1` or `14`) or keyword (`sliding window`). |
Options & Flags
| Option Flag | Description |
|---|---|
| --raw | Output plain markdown text without terminal color formatting or pagination. |
| --web | Open the selected RFC section directly in your default desktop web browser (`kspprotocol.dev/rfc`). |
Example Usage
Example command
ksp rfc 8.2
Expected Output
════════════════════════════════════════════════════════════
══ KSP RFC-0001 Specification ══
════════════════════════════════════════════════════════════
Section 8.2 — Nonce Construction & Counter Mechanics
To prevent nonce reuse catastrophes under AES-256-GCM and ChaCha20-Poly1305,
KSP constructs 12-byte (96-bit) nonces using a deterministic XOR scheme:
[ 4-byte Session Salt ] || [ 8-byte Sequence Counter ]
Every transmitted frame increments the 64-bit sequence counter monotonically.
Endpoints MUST verify that sequence numbers never decrement within a session.Implementation Notes
Ensures you never have to leave your IDE terminal to double-check exact wire offsets or protocol semantics.