Fixed structures
Applies to SEAM 1
| Structure | Size | Endianness | Integrity |
|---|---|---|---|
| Keyring header | 18 B + body + 16 B tag | little-endian | AES-GCM (master key) |
| Seal trailer | 32 B | little-endian | GCM tag |
| WAL block | 4096 B | little-endian | AES-GCM and a generation check; records carry CRC32C |
| WAL record header | 8 B | little-endian | CRC32C of the payload |
| MANIFEST header | 24 B (legacy 8 B) | little-endian | bound into every record’s AAD |
| MANIFEST record | 4 B length + sealed body | little-endian | AES-GCM |
| SEAM frame header | 5 B (inside the seal) | little-endian | AES-GCM |
| SEAM footer | 64 B + 32 B | little-endian | AES-GCM |
| Index entry | varint + key length + 20 B | little-endian | inside the index frame |
| Bloom block | 32 B (8 words of u32) | little-endian | inside the bloom frame |
SEAM data files have no separate checksums: the GCM tag of each frame is the checksum. Page integrity is met by the AEAD, and WAL records add a CRC32C inside the sealed block (SPEC V5).
Rules that apply to every structure
Section titled “Rules that apply to every structure”- Integers are little-endian unless stated. Keys are the one big-endian place, so they sort bytewise.
- Varints are unsigned LEB128 of at most 10 bytes. Signed integers in columnar streams and stats use zig-zag varints.
- Keys use big-endian with the sign bit flipped so that bytewise order equals numeric order. See Order-preserving values.
- Counts are bounded by the remaining input or by a documented limit before allocation. See count(limit) and Limits.