Skip to content

feat: add TSA and certificate support to wasm signer#51

Open
thillmann wants to merge 7 commits into
contentauth:mainfrom
thillmann:wasm-signer-update
Open

feat: add TSA and certificate support to wasm signer#51
thillmann wants to merge 7 commits into
contentauth:mainfrom
thillmann:wasm-signer-update

Conversation

@thillmann
Copy link
Copy Markdown

When trying to use the Builder to embed a signed manifest in a media file, we encountered a few gaps:

  • direct_cose_handling was always set to true
  • There was no way to pass certificates down to the signing process
  • There were a few more options missing on Signer

Using the Node.js implementation as guidance, I made those changes and confirmed it was working in our sign and embedding flow.

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Dec 3, 2025

🦋 Changeset detected

Latest commit: 7d0f290

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@contentauth/c2pa-wasm Minor
@contentauth/c2pa-web Minor

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

@thillmann thillmann marked this pull request as ready for review February 26, 2026 06:55
@thillmann thillmann closed this Feb 26, 2026
@thillmann thillmann reopened this Feb 26, 2026
@thillmann thillmann force-pushed the wasm-signer-update branch from c6a964c to fabce4a Compare March 3, 2026 22:36
thillmann and others added 7 commits April 30, 2026 09:40
- Use JsString::from instead of JsError::new where the function
  signature returns Result<_, JsString>.
  does not implement From<&String>.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Document that the trustConfig setting maps to c2pa-rs's trust_config,
which is the list of allowed Extended Key Usage (EKU) OIDs that signing
certificates may have. Add a README example showing how to set custom
trust anchors plus additional EKUs.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@thillmann thillmann force-pushed the wasm-signer-update branch from fabce4a to 7d0f290 Compare April 30, 2026 04:47
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