Skip to content

MAX_CHUNK_COUNT

const MAX_CHUNK_COUNT: 4294967295 = 4294967295

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

Largest permitted chunk count.

The per-chunk nonce reserves 4 bytes for the chunk index (see docs/tech-spec.md, “Per-chunk nonce”), which could in principle count up to 2^32 values. The FIP deliberately caps chunk_count one below that, at 2^32 - 1, so we follow the spec’s stated limit rather than the counter’s raw addressable range.