# @filoz/filecoin-encryption-envelope

**Filecoin Encryption Envelope (FIP-1253) - Main Entry Point**

## Example

```ts
import * as fee from '@filoz/filecoin-encryption-envelope'

fee.cose.decodeEnvelope(bytes)
fee.constants.ALG_AES_256_GCM
```

## Namespaces

| Namespace | Description |
| ------ | ------ |
| [aesGcm](/reference/filoz/filecoin-encryption-envelope/namespaces/aesgcm/toc/) | - |
| [chunkLayout](/reference/filoz/filecoin-encryption-envelope/namespaces/chunklayout/toc/) | - |
| [constants](/reference/filoz/filecoin-encryption-envelope/namespaces/constants/toc/) | - |
| [cose](/reference/filoz/filecoin-encryption-envelope/namespaces/cose/toc/) | COSE wire-format layer (FIP-1253): typed structures ↔ bytes for the envelope's protected/unprotected headers, `Enc_structure` (AAD), and the tagged CBOR envelope itself. See docs/tech-spec.md, "Wire profile" and "CDDL". No AEAD, no key wrap, no chunk framing — those live above this. |
| [errors](/reference/filoz/filecoin-encryption-envelope/namespaces/errors/toc/) | - |
| [nonce](/reference/filoz/filecoin-encryption-envelope/namespaces/nonce/toc/) | - |