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
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
-s accepts arbitrary file extensions, but not no file extension. Signing a file without an extension results in "Error: Missing extension output".
No way to specify sidecar output file path. Sidecar is mandatorily written to output path with .c2pa.
-s does not take any parameters. The sidecar will have the same name and same location as the output asset except with a .c2pa extension.
Sidecar validation is automatic if there is no manifest in the asset and their is a file with the same name with a .c2pa extension in the same folder.
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
-s
accepts arbitrary file extensions, but not no file extension. Signing a file without an extension results in "Error: Missing extension output".c2patool -s
writes a mandatory copy of the original input file (Add test_embed_with_ingredient_err #134)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:c2patool myfile -m manifest.json -s myfile.c2pa
: write signature to sidecarc2patool myfile -s myfile.c2pa
: verify signature from sidecarI hope this is helpful -- it's my first time trying the tool so I may be confused.
The text was updated successfully, but these errors were encountered: