# cose

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

## Interfaces

| Interface | Description |
| ------ | ------ |
| [DecodedEnvelope](/reference/filecoin-encryption-envelope/namespaces/cose/interfaces/decodedenvelope/) | - |
| [DecodedProtectedHeader](/reference/filecoin-encryption-envelope/namespaces/cose/interfaces/decodedprotectedheader/) | A decoded protected header with its original encoded bytes. Use `bytes` verbatim when building the Enc_structure. |
| [DecodedRecipient](/reference/filecoin-encryption-envelope/namespaces/cose/interfaces/decodedrecipient/) | A decoded `COSE_recipient`. No key unwrapping happens at this layer. |

## Type Aliases

| Type Alias | Description |
| ------ | ------ |
| [Alg](/reference/filecoin-encryption-envelope/namespaces/cose/type-aliases/alg/) | One of the two content-encryption schemes supported by this package. |
| [UnprotectedHeaderMap](/reference/filecoin-encryption-envelope/namespaces/cose/type-aliases/unprotectedheadermap/) | Content unprotected header map. |

## Functions

| Function | Description |
| ------ | ------ |
| [decodeEnvelope](/reference/filecoin-encryption-envelope/namespaces/cose/functions/decodeenvelope/) | Decode the envelope at the start of `data`. Bytes after `envelopeLength` are untouched detached ciphertext. |

## References

### CborValue

Re-exports [CborValue](/reference/filecoin-encryption-envelope/type-aliases/cborvalue/)