c2pa_codec 0.1.0-dev.1 copy "c2pa_codec: ^0.1.0-dev.1" to clipboard
c2pa_codec: ^0.1.0-dev.1 copied to clipboard

Deterministic CBOR, COSE structures, ISO boxes, and JUMBF for C2PA.

c2pa_codec #

Deterministic CBOR, COSE structures, ISO boxes, JUMBF, and bounded Brotli decoding for the Dart C2PA implementation.

Platforms #

The public library supports the Dart VM, Flutter, and web. It uses c2pa_io for bounded byte access and has no native runtime dependency.

import 'package:c2pa_codec/c2pa_codec.dart';

final encoded = encodeCbor({'answer': 42});
final decoded = decodeCbor(encoded);

See example/c2pa_codec.dart.

Security and defaults #

Decoders reject trailing data and malformed sizes, enforce configurable nesting and expansion limits, and do not access the network. Strict CBOR decoding requires canonical map order by default; callers parsing compatible legacy data must opt into relaxed options explicitly.

Package relationships #

c2pa_codec depends on c2pa_io. It supplies encoding and container primitives to c2pa_crypto, c2pa_formats, and the high-level c2pa SDK.

Compatibility and limitations #

The compatibility target is c2pa-rs c2pa-v0.90.22. The Brotli implementation decodes bounded compressed manifest data but does not encode Brotli streams, so compressed-manifest generation parity is not claimed. Format-level parity belongs to c2pa_formats and is partial for a number of containers.

The vendored Brotli decoder retains its own MIT license under lib/src/brotli_vendor. This package is licensed under the MIT License (LICENSE). As an alternative, you may instead use this package under the Apache License, Version 2.0 (LICENSE-APACHE), so the package is offered as MIT OR Apache-2.0, at your option. Copyright is held by contributors to c2pa_dart.

0
likes
160
points
0
downloads

Documentation

API reference

Publisher

verified publisherabrah.am

Weekly Downloads

Deterministic CBOR, COSE structures, ISO boxes, and JUMBF for C2PA.

Repository (GitHub)
View/report issues

Topics

#c2pa #cbor #cose #iso-bmff #jumbf

License

MIT (license)

Dependencies

c2pa_io

More

Packages that depend on c2pa_codec