Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Update c2patool to read CAWG data #907

Open
wants to merge 37 commits into
base: main
Choose a base branch
from

Conversation

tmathern
Copy link
Contributor

@tmathern tmathern commented Feb 6, 2025

  • c2patool can read CAWG data: c2patool file_with_cawg_data.extension
  • feat: c2patool to read cawg data with --detailed flag too: c2patool --detailed file_with_cawg_data.extension

* ci: Add debug statements

* Omit additional paddings

* feat: Omit more padding tags

* ci: add explanation

* ci: Catch result strings before they get returned

* ci: sdk catch result string before returning them

* ci: look into parsing stuff

* ci: WIP for cawg display

* ci: Replace signature with hash

* ci: Replace signature with hash

* ci: Clean up leftover debug code

* ci: Parse cawg data in cli, introduce tokio

* ci: WIP

* ci: WIP

* ci: Up some deps

* ci: WIP

* ci: WIP

* feat: Add methods to reader to decorate the json

* ci: Got the cleaned content signature

* ci: Some clean up

* ci: Some clean up

* ci: WIP

* feat: cawg parsing hack

* feat: move display

* feat: Refactor

* feat: Refactor

* feat: Refactor

* ci: Tmp check all other tests

* ci: Tmp check all other tests

* Debug

* fix: fix mistake of returning too early

* fix: Remove debug file

* fix: Remove debug file

* fix: Change error handling
@tmathern tmathern self-assigned this Feb 6, 2025
cli/Cargo.toml Outdated Show resolved Hide resolved
@tmathern tmathern force-pushed the mathern/cawg-reading-trois branch from 71cf103 to cc6e7bd Compare February 6, 2025 23:14
@tmathern tmathern force-pushed the mathern/cawg-reading-trois branch from 1f0416c to aba1ef6 Compare February 6, 2025 23:15
@tmathern tmathern marked this pull request as ready for review February 6, 2025 23:40
cli/Cargo.toml Outdated Show resolved Hide resolved
cli/tests/integration.rs Show resolved Hide resolved
sdk/Cargo.toml Outdated Show resolved Hide resolved
Copy link
Collaborator

@gpeacock gpeacock left a comment

Choose a reason for hiding this comment

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

I'd like to keep this on a branch until I figure out what changes are going into c2pa-rs related to this.

cli/src/main.rs Outdated Show resolved Hide resolved
cli/src/main.rs Outdated Show resolved Hide resolved
cli/src/main.rs Outdated Show resolved Hide resolved
sdk/src/reader.rs Outdated Show resolved Hide resolved
sdk/src/reader.rs Outdated Show resolved Hide resolved
@tmathern tmathern changed the title feat: c2patool to read cawg data (#904) feat: c2patool to read cawg data Feb 7, 2025
@tmathern tmathern requested a review from gpeacock February 7, 2025 19:26
@tmathern tmathern force-pushed the mathern/cawg-reading-trois branch from 5ab845e to 7d2418a Compare February 7, 2025 19:44
@scouten-adobe scouten-adobe changed the title feat: c2patool to read cawg data feat: Update c2patool to read CAWG data Feb 7, 2025
sdk/src/manifest_store.rs Outdated Show resolved Hide resolved
};

let isv = IcaSignatureVerifier {};
let ica_validated = tokio_runtime.block_on(identity_assertion.validate(manifest, &isv));
Copy link
Collaborator

Choose a reason for hiding this comment

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

we need to capture the validation results from this operation and add them to the rest of the validation results. Most of this logic belongs in CAWG.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@scouten-adobe ^ FYI - for your APIS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants