Skip to content

fix: Examples update - #129

Merged
tmathern merged 10 commits into
mainfrom
mathern/docs-update
Aug 11, 2025
Merged

fix: Examples update#129
tmathern merged 10 commits into
mainfrom
mathern/docs-update

Conversation

@tmathern

@tmathern tmathern commented Jun 28, 2025

Copy link
Copy Markdown
Collaborator
  • Add an example that showcases v2 manifest signing + callback signer
  • Keep old example (renamed to signer_info) showing signing using signer information and v1 manifest
  • Use cawg assertions in more examples
  • Add unit tests for V2 signing (because I want us to have the examples also be part of the unit tests)

@tmathern
tmathern requested a review from crandmck June 28, 2025 03:14
@tmathern tmathern self-assigned this Jun 28, 2025
@tmathern tmathern changed the title fix: Docs update fix: Examples update Jun 28, 2025
Comment thread examples/sign_info.py
Comment thread examples/training.py
Comment thread examples/sign.py
{'@type': 'Person', 'name': 'Example User'}
"label": "c2pa.actions",
"data": {
"actions": [

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

I believe this is the most minimal valid V2 manifest we can have.

Comment thread examples/sign.py
Comment thread examples/sign.py
Comment thread examples/README.md Outdated
Comment thread examples/README.md Outdated
Comment thread examples/README.md Outdated

### Run the callback signing and verification example

In this example, signing is done using a callback signer:

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

In this example, a callback signer does the signer:

@tmathern tmathern Aug 11, 2025

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

In this example, a callback signer is the signer is more accurate (is instead of does - because it is only one part that we use, we still provide the whole other plumbing to sign)

Comment thread examples/sign_info.py
@tmathern
tmathern merged commit 4dc3831 into main Aug 11, 2025
13 of 17 checks passed
@tmathern
tmathern deleted the mathern/docs-update branch August 11, 2025 20:03
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.

2 participants