Skip to content

RangeResult

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

ciphertextSpan: object

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

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:41

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:31

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


stream: ReadableStream<Uint8Array<ArrayBufferLike>>

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

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


totalPlaintextLength: number

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

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