You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/manifest/assertions-actions.md
+25-35Lines changed: 25 additions & 35 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -254,10 +254,10 @@ For example:
254
254
"assertions": [
255
255
...
256
256
{
257
-
"label": "com.truepic.libc2pa",
257
+
"label": "com.mycompany.myproduct",
258
258
"data": {
259
259
"git_hash": "023bb51",
260
-
"lib_name": "Truepic C2PA C++ Library",
260
+
"lib_name": "Our C2PA C++ Library",
261
261
"lib_version": "2.5.1",
262
262
"target_spec_version": "1.2"
263
263
},
@@ -381,7 +381,7 @@ The `parameters` property can contain any data that provide more details on the
381
381
]
382
382
```
383
383
384
-
When creating an actions assertion that has an associated ingredient, the `parameters` object must include a `org.cai.ingredientIds` property with an array of one or more [`instanceID` values](#the-instanceid-property) from ingredients. This is how you associate an action with one or more ingredients.
384
+
When creating an actions assertion that has an associated ingredient, the `parameters` object must include a `org.cai.ingredientIds` property with an array of one or more [`instance_id` values](#the-instance_id-property) from ingredients. This is how you associate an action with one or more ingredients.
385
385
386
386
:::info
387
387
The [C2PA specification](https://c2pa.org/specifications/specifications/2.1/specs/C2PA_Specification.html#_parameters) requires that a `c2pa.transcoded`, `c2pa.repackaged`, `c2pa.opened`, or a `c2pa.placed` action have one or more associated ingredients, so it is very important to add the `org.cai.ingredientIds` parameter with a matching ingredient.
@@ -402,76 +402,66 @@ For example:
402
402
...
403
403
```
404
404
405
-
The SDK supports the older `ingredientId` field, but it is deprecated and will at some point not be supported.
405
+
:::note
406
+
The old `ingredientId` field is deprecated.
407
+
:::
406
408
407
409
For more information on action parameters, see the [C2PA Technical Specification](https://c2pa.org/specifications/specifications/1.4/specs/C2PA_Specification.html#_parameters).
408
410
409
-
### The instanceId property
411
+
### The instance_id property
412
+
413
+
When defining/writing a manifest, the `instance_id` property identifies an ingredient used in an action.
410
414
411
-
The `instanceId` property identifies an ingredient (with a matching value of `instance_id`) used in an action and is only used when defining/writing a manifest, not reading one.
415
+
Any `c2pa.opened` or `c2pa.placed` action must have an associated ingredient identified by the `org.cai.ingredientIds` parameters field of the action with an array of ingredient `instance_id` values.
For example, the following action identifies that the `c2pa.opened` action was performed on the ingredient with ID `xmp.did:813ee422-9736-4cdc-9be6-4e35ed8e41cb`:
440
+
For example, the following action identifies that the `c2pa.opened` action was performed on the ingredient with ID `xmp.iid:3250038a-22ca-459b-8392-de275f8b155c`:
0 commit comments