Skip to content

KeyResolver

KeyResolver = (info) => Promise<Uint8Array> | Uint8Array

Defined in: packages/filecoin-encryption-envelope/src/aes-gcm-stream.ts:457

Derives or fetches the CEK for a chunked object, given its EnvelopeInfo. Called once, after the envelope decodes.

ParameterType
infoEnvelopeInfo

Promise<Uint8Array> | Uint8Array