Skip to content

Commit a0be81b

Browse files
authored
Merge pull request #214 from contentauth/json-manifest-ref-update
Json manifest ref update
2 parents 131c38c + 89947fa commit a0be81b

File tree

12 files changed

+9954
-5265
lines changed

12 files changed

+9954
-5265
lines changed
File renamed without changes.

docs/manifest/json-ref/index.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
id: index
3+
title: Manifest JSON reference
4+
hide_table_of_contents: true
5+
pagination_next: null
6+
pagination_prev: null
7+
---
8+
9+
The [C2PA specification](https://c2pa.org/specifications/specifications/2.1/specs/C2PA_Specification.html#_manifests) describes a manifest with a binary structure in JPEG universal metadata box format ([JUMBF](https://www.iso.org/standard/84635.html)) that includes JSON as well as binary data for things like encryption keys and thumbnail images. Because the binary structure is hard to understand and program to, the SDK defines a JSON manifest structure that's a declarative language for representing and creating a binary manifest.
10+
11+
The JSON manifest is an abstract translation layer that's easier to understand than the binary format. It can describe everything in the underlying binary format except for binary data such as thumbnails that are included by a structure called a _resource reference_. To generate a binary manifest, the SDK assembles all the JSON objects, resource references, and ingredients defined, and then converts them into different assertions and other objects as required.
12+
13+
These JSON references are generated from the JSON schemas for [ManifestDefinition](https://docs.rs/c2pa/latest/c2pa/struct.ManifestDefinition.html) and [Reader](https://docs.rs/c2pa/latest/c2pa/struct.Reader.html) objects (_structs_ in Rust terminology):
14+
15+
- [ManifestDefinition](manifest-def.mdx): Defines a manifest and builds a manifest store.
16+
- [Reader](reader.mdx): Reads and validates a manifest.

0 commit comments

Comments
 (0)