feat: Add redaction logic#105
Conversation
Update c2pa crate.
🦋 Changeset detectedLatest commit: b60116e The changes in this PR will be included in the next version bump. This PR includes changesets to release 3 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
| setThumbnailFromBlob: (format: string, blob: Blob) => Promise<void>; | ||
|
|
||
| /** | ||
| * Redact an assertion from an ingredient manifest. |
There was a problem hiding this comment.
Or a thumbnail? Does this handle redacting thumbnails too (it should, since they have/are URI, but gathering them is different than gathering action assertions).
It may be worth adding one test that redacts a thumbnail, to verify there are no surprises here.
(The challenging ones in native SDKs were to redact the thumbnail on an ingredient added as ingredient, to redact the thumbnail add_ingredient adds when the Rust feature to autogenerate thumbnails is here).
There was a problem hiding this comment.
Sounds like a good idea.
Import C2paReason type from contentauth/c2pa-rs#2100