encodeEnvelope
encodeEnvelope(
input):Uint8Array
Defined in: packages/filecoin-encryption-envelope/src/cose/encode.ts:60
Encode an envelope with detached ciphertext. The caller appends the ciphertext separately. See docs/tech-spec.md, “Blob layout”.
The encoder enforces the same structural rules as decodeEnvelope, so it
cannot produce an envelope the decoder would reject. Protected header
rules are handled by encodeProtectedHeader.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
input | EncodeEnvelopeInput |