Skip to content

encodeProtectedHeader

encodeProtectedHeader(fields): Uint8Array

Defined in: packages/filecoin-encryption-envelope/src/cose/headers.ts:877

Encode the protected header as a deterministically encoded CBOR map.

Deterministic encoding provides stable bytes and test vectors; authentication still uses the exact protected bytes carried by each envelope.

ParameterType
fieldsProtectedHeaderFields

Uint8Array