Skip to content

Conversation

@shruti-kangokar
Copy link

Tests for tracking CO2, energy, and water usage in C2PA manifests.

Two approaches tested:

  • cawg.metadata assertion (manifest-level)
  • action parameters (per-action tracking)

9 tests covering complete data, partial data, zero values, large values, aggregation, and combined approaches.

Changes in this pull request

Give a narrative description of what has been changed.

Checklist

  • This PR represents a single feature, fix, or change.
  • All applicable changes have been documented.
  • Any TO DO items (or similar) have been entered as GitHub issues and the link to that issue has been included in a comment.

Tests for tracking CO2, energy, and water usage in C2PA manifests.

Two approaches tested:
- cawg.metadata assertion (manifest-level)
- action parameters (per-action tracking)

9 tests covering complete data, partial data, zero values,
large values, aggregation, and combined approaches.
"kind": "Json",
"data": {
"@context": { "env": "https://cawg.io/environmental/1.0/" },
"env:co2eq_g": 400,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, we'll need to decide an end name and unit, but would be quick to update!

Did you try to recover a signed file? To do so, you'd write it locally to your disk. I want to make sure c2patool can re-read it.

@tmathern tmathern changed the title Add environmental impact metadata tests for hackathon Hackathon (december 2025) Dec 12, 2025
@tmathern tmathern closed this Dec 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants