Skip to content

Each sealed object is authenticated together with an AAD (additional authenticated data) string. Binding the file id and block index into the AAD means a block moved to another offset, another file, or a swapped file is rejected (SPEC V29). Here ‖ is concatenation and all integers are little-endian.

Object AAD bytes Length
SEAM data block i "stc" ‖ 0x00 ‖ file_id u64 ‖ i u32 16
SEAM bloom "stc" ‖ 0x01 ‖ file_id u64 ‖ 0u32 16
SEAM index "stc" ‖ 0x02 ‖ file_id u64 ‖ 0u32 16
SEAM footer "stc" ‖ 0x03 ‖ file_id u64 ‖ 0u32 16
SEAM block stats "stc" ‖ 0x04 ‖ file_id u64 ‖ 0u32 16
WAL block "wal" ‖ segment_id u64 ‖ block_index u64 19
MANIFEST record (24-byte header) "mf2" ‖ generation u64 ‖ seq u64 ‖ store_format u32 ‖ manifest_format u16 25
MANIFEST record (legacy header) "mfs" ‖ generation u64 ‖ seq u64 19
TIERHEAT "stc-tier-heat" 13
ZONES "stc-zone-seed" 13
SPANS "stc-span-seed" 13
cache.hot "stc-warm-v1" ‖ 5 × 0x00 16
rcache/index "stc-rcache-index" 16
Bulk-load spill block "loadrun1" ‖ file_id u64 ‖ block u64 24
Index-build spill block "idxrun01" ‖ file_id u64 ‖ block u64 24
Index-build spill footer "idxrun01" ‖ file_id u64 ‖ u64::MAX 24

The keyring has its own AAD, "strata-keyring-v1", see Keyring file. The caching_sha2 verifier has its own, see Sealed caching_sha2 verifier.

The "mf2" form is used with the 24-byte header and binds the store format and manifest format as well, so records cannot be carried across a format stamp. The "mfs" form belongs to the legacy 8-byte header. The "mf2" AAD arrived with pre-2, alongside the legacy "mfs" form.

See Spill runs.