Skip to content

RangeResult

Defined in: packages/filecoin-encryption-envelope/src/range/decrypt.ts:26

ciphertextSpan: object

Defined in: packages/filecoin-encryption-envelope/src/range/decrypt.ts:34

What will actually be fetched from source: absolute bytes, envelope included.

length: number

offset: number


includesFinalChunk: boolean

Defined in: packages/filecoin-encryption-envelope/src/range/decrypt.ts:40

Whether the requested span includes the object’s presumed final chunk. Its last_flag is authenticated once that chunk is actually read from stream — this field alone doesn’t prove the object wasn’t truncated.


rangeLength: number

Defined in: packages/filecoin-encryption-envelope/src/range/decrypt.ts:30

Bytes stream will emit: Content-Length for this response.


stream: ReadableStream<Uint8Array<ArrayBufferLike>>

Defined in: packages/filecoin-encryption-envelope/src/range/decrypt.ts:28

Plaintext for the requested range, one authenticated chunk at a time.


totalPlaintextLength: number

Defined in: packages/filecoin-encryption-envelope/src/range/decrypt.ts:32

The whole object’s plaintext length: Content-Range total.