RangeResult
Defined in: packages/filecoin-encryption-envelope/src/range/decrypt.ts:27
Properties
Section titled “Properties”ciphertextSpan
Section titled “ciphertextSpan”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
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: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
Section titled “rangeLength”rangeLength:
number
Defined in: packages/filecoin-encryption-envelope/src/range/decrypt.ts:31
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:29
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:33
The whole object’s plaintext length: Content-Range total.