Skip to content

paddedSizeFor

paddedSizeFor(rawSize): bigint

Defined in: packages/synapse-core/src/piece/sizing.ts:18

Padded piece size in bytes that a raw payload of rawSize will produce.

Returns the canonical Filecoin padded size (2^height × 32), always a power of 2 × 32.

ParameterType
rawSizenumber | bigint

bigint