Skip to content

RecipientInput

Defined in: packages/filecoin-encryption-envelope/src/cose/encode.ts:20

Input for one COSE_recipient. This layer shapes it; it never wraps a key.

ciphertext: Uint8Array

Defined in: packages/filecoin-encryption-envelope/src/cose/encode.ts:30

Wrapped key material.


protectedBytes: Uint8Array

Defined in: packages/filecoin-encryption-envelope/src/cose/encode.ts:26

This recipient’s serialized protected header, or h'' for none. Which of the two is required depends on the recipient algorithm: A256KW needs the empty form, ECDH-ES+A256KW a map carrying alg.


unprotected: Map<string | number, CborValue>

Defined in: packages/filecoin-encryption-envelope/src/cose/encode.ts:28

Text labels are legal (RFC 9052 §3.1) but only ever come from an application extension.