c2pa-rs
c2pa-rs copied to clipboard
feat: Add `get_provenance_cert_chain` to `Reader`
I found myself needing to inspect the cert chain present in a C2PA asset over in c2pa-go. This reader interface seemed to be the only piece exposed in the UniFFI bindings, so I added a helper function here. I have no idea if I'm doing it the right way, but it does work.
I'm trying to keep the API space to a minimum, so let me think about this. I'm planning to expose the detailed manifest store report to this API (with something like json-detailed() and that could include the certs from every manifest in the store.
@iameli would you please enable maintainers' contributions? This would allow us to update to base branch. Otherwise, we'll keep asking you to update and hope that we notice at the right time. 😐