Skip to content

Unwrapper

Unwrapper = (recipients) => Promise<Uint8Array | undefined>

Defined in: packages/filecoin-encryption-envelope/src/recipients/types.ts:51

Recover a CEK from an ordered, structurally validated recipient list.

Return undefined when none of the recipients can be handled. Throwing aborts key recovery; decryptWith reports it as RecipientUnwrapError with the original error as its cause.

ParameterType
recipientsreadonly RecipientInfo[]

Promise<Uint8Array | undefined>