@filoz/filecoin-encryption-envelope
Filecoin Encryption Envelope (FIP-1253) - Main Entry Point
Example
Section titled “Example”import * as fee from '@filoz/filecoin-encryption-envelope'
fee.cose.decodeEnvelope(bytes)fee.constants.ALG_AES_256_GCMNamespaces
Section titled “Namespaces”| Namespace | Description |
|---|---|
| aesGcm | - |
| chunkLayout | - |
| constants | - |
| cose | 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 | - |
| nonce | - |