Skip to content

Conversation

@cyraxx
Copy link
Contributor

@cyraxx cyraxx commented Jan 2, 2026

Some timestamp response parsers (namely, c2pa-rs) only expect DER encoded content in EncapsulatedContentInfo. This change works around PKI.js reformatting the content into BER encoding and keeps it DER compatible.

Additionally, LocalTimestampProvider now includes a dummy TSA policy OID in the response as it's a required field.

- Encode EncapsulatedContentInfo content as DER
- Make sure a TSA policy OID is present
@cyraxx cyraxx requested a review from karlobencic January 2, 2026 16:49
@changeset-bot
Copy link

changeset-bot bot commented Jan 2, 2026

🦋 Changeset detected

Latest commit: 6f65a61

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

This PR includes changesets to release 1 package
Name Type
@trustnxt/c2pa-ts Patch

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

@sonarqubecloud
Copy link

sonarqubecloud bot commented Jan 2, 2026

@cyraxx cyraxx merged commit cc3392d into main Jan 5, 2026
4 checks passed
@cyraxx cyraxx deleted the timestamp-interoperability branch January 5, 2026 19:30
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.

3 participants