contentauth / c2patool

Command line tool for displaying and adding C2PA manifests
Apache License 2.0
117 stars 36 forks source link

Sidecar usability improvements #298

Open jcushman opened 5 days ago

jcushman commented 5 days ago

Goal

I'm working on an archiving project where I need to write provenance chains for arbitrary files. I was hoping to use c2patool to sign these files via the sidecar support. I hoped that something like this would work:

c2patool myfile -s <some params> -- write the sidecar to myfile.c2pa. c2patool myfile myfile.c2pa -- validate myfile using myfile.c2p.

I found a few issues doing this, some bigger than others.

Sidecar usability issues

I'm not sure the cleanest way to sort this out, but maybe it's just that -s needs to take a file path. Something like:

I hope this is helpful -- it's my first time trying the tool so I may be confused.

jcushman commented 5 days ago

Oh, I'm also not clear how sidecar support works with multiple/repeated signatures, but I didn't get far enough to experiment with that.