Skip to main content

Module wire

Module wire 

Source
Expand description

Self-describing wire format for FibQuant codes.

The FB1/FB2 compact formats strip all profile metadata, forcing downstream consumers to hardcode seed, dim, k, N externally. This module provides FibCodeWireV1 — a self-describing format with a header carrying seed, dim, k, N, norm_format, and profile digest, enabling decode without any external profile knowledge.

Structs§

FibCodeWireV1
Self-describing wire format codec.
WireHeader
Parsed wire header (metadata without full decode).

Constants§

WIRE_HEADER_SIZE
Header size: magic(4) + version(1) + ambient_dim(4) + block_dim(4)
WIRE_MAGIC
Magic bytes: “FBW1” = Fib Binary Wire v1.
WIRE_VERSION
Current wire format version.