Skip to content

HEADER_CHUNK_COUNT

const HEADER_CHUNK_COUNT: -65791 = -65791

Defined in: packages/filecoin-encryption-envelope/src/constants.ts:36

chunk_count, private use (RFC 9052 §3.1). Present only when the content length was known at encryption time. See docs/tech-spec.md, “chunk_count and truncation” — this label lives in the protected header so an attacker cannot edit it to mask a truncated object without failing every chunk’s AEAD tag.