@woss/exiftool - v0.3.1
    Preparing search index...

    Function decodeCBOR

    • Decodes CBOR (Concise Binary Object Representation) data to JavaScript values.

      Implements RFC 8949 subset needed for C2PA manifests:

      • Major types 0-7 (unsigned/signed ints, byte/text strings, arrays, maps, tags, simple values)
      • Standard tags (datetime, base64, base64url, encoded CBOR, etc.)
      • C2PA-specific tags (COSE structures, merkle trees)
      • Indefinite-length items (arrays, maps, strings)

      Parameters

      • data: Uint8Array

        CBOR-encoded data

      • Optionaloptions: CBORDecodeOptions

        Decoding options (max depth, indefinite handling)

      • OptionaltagHandlers: Map<number, CBORTagHandler>

        Custom tag handlers (merged with defaults)

      Returns unknown

      Decoded JavaScript value