Skip to content

Add Builder.sign_embeddable for stream-less signing - #369

Open
gillesdegottex wants to merge 1 commit into
contentauth:mainfrom
cobalstamp:sign-embeddable
Open

gillesdegottex wants to merge 1 commit into
contentauth:mainfrom
cobalstamp:sign-embeddable

Conversation

@gillesdegottex

Copy link
Copy Markdown

Changes in this pull request

Adds Builder.sign_embeddable(format): signs the manifest and returns the
manifest store as raw bytes, without requiring the asset on disk.

This is useful when the asset is not available at signing time and its hash
is already known, ex. for creating a service that only sign the manifest without
the need of transferring the whole file that might be big.

The caller adds a c2pa.hash.data assertion to the manifest definition
with the pre-computed hash and the byte range to exclude, and gets back
a store that can be inserted into the asset at that exact range.
The asset outside that range is bound by the hash.

Checklist

  • This PR represents a single feature, fix, or change.
  • All applicable changes have been documented.
  • Any TO DO items (or similar) have been entered as GitHub issues and the link to that issue has been included in a comment.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant