Samizdat_Mesh

Technical Specifications

The engineering foundations — protocols, cryptography, and wire formats.

Protocol-74 Revision E

Active

The authoritative specification. Glacier V2 transport, Negentropy reconciliation, ESP-NOW framing, Lantern/Spore architectures, hardware BOMs.

Key Ceremony

Active

Four-phase authentication flow. GPS → Geohash → Morton Code → Blake3 KDF → XChaCha20-Poly1305. The ceremony gradient: tap, GPS match, QR decrypt.

Cross-Platform Crypto

Active

TypeScript (PWA) and Go (CLI) must produce identical output. Morton code interleaving, Blake3 derive_key mode, test vectors for coordinate parity.

QR Payload v2

Active

Encryption format for deployment QR codes. URL fragment encoding (zero server knowledge), nonce derivation, XChaCha20-Poly1305 payload format.

Protocol Constants

Constant Value Notes
Network ID0x444D5A53"SMZD" little-endian
Max Payload250 bytesESP-NOW hardware limit
Max Message2048 bytesSplit via Glacier protocol
Short Hash6 bytesBloom filter entries
Max Messages750/throwieLittleFS storage
KDF Contextsmzd:ck:1JOSE-style, hard-coded

Crypto Stack

Primitive Library Usage
Blake3@noble/hashesKDF, content hashing
XChaCha20-Poly1305@noble/ciphersPayload encryption
X25519@noble/curvesKey exchange
Ed25519@noble/curvesSignatures (future)

Frame Types

Byte Name Purpose
0x42BeaconMule announce
0x4DManifestThrowie inventory
0x52RequestPull messages
0x43ChunkMessage data