Skip to content

CborValue

CborValue = string | number | boolean | null | Uint8Array | CborValue[] | Map<CborValue, CborValue> | CborValueObject

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

CBOR values supported by this profile.

Decoding produces Map for CBOR maps, while appMetadata may use plain objects when encoding. One type for both allows decoded values to be passed back to the encoder.