RangeResult
Defined in: packages/filecoin-encryption-envelope/src/range/decrypt.ts:26
Properties
Section titled “Properties”ciphertextSpan
Section titled “ciphertextSpan”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
Section titled “length”length:
number
offset
Section titled “offset”offset:
number
includesFinalChunk
Section titled “includesFinalChunk”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
Section titled “rangeLength”rangeLength:
number
Defined in: packages/filecoin-encryption-envelope/src/range/decrypt.ts:30
Bytes stream will emit: Content-Length for this response.
stream
Section titled “stream”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
Section titled “totalPlaintextLength”totalPlaintextLength:
number
Defined in: packages/filecoin-encryption-envelope/src/range/decrypt.ts:32
The whole object’s plaintext length: Content-Range total.