Skip to content

cose

Decode Filecoin Encryption Envelope headers and recipient entries without decrypting the content. Decoding does not authenticate the envelope.

Interface Description
DecodedEnvelope -
DecodedProtectedHeader A decoded protected header with its original encoded bytes. Use bytes verbatim when building the Enc_structure.
DecodedRecipient A decoded COSE_recipient. No key unwrapping happens at this layer.
Type Alias Description
Alg One of the two content-encryption schemes supported by this package.
UnprotectedHeaderMap Content unprotected header map.
Function Description
decodeEnvelope Decode the envelope at the start of data. Bytes after envelopeLength are untouched detached ciphertext.

Re-exports CborValue