Skip to content

fix: ensure public key signatures are not in the past compared to the public key#8397

Merged
link2xt merged 1 commit into
mainfrom
link2xt/ultxzussxnkk
Jul 8, 2026
Merged

fix: ensure public key signatures are not in the past compared to the public key#8397
link2xt merged 1 commit into
mainfrom
link2xt/ultxzussxnkk

Conversation

@link2xt

@link2xt link2xt commented Jul 2, 2026

Copy link
Copy Markdown
Collaborator

We use the timestamp of the latest transport modification as the timestamp of the Direct Key Signature.
However, first transport is created before the public key and existing transports may even have zero timestamp if they were created before migration 142.

For interoperability with Sequoia-PGP,
make sure signatures always have a timestamp
that is not in the past compared to the timestamp
of the primary key.

Closes #8383

@link2xt link2xt force-pushed the link2xt/ultxzussxnkk branch from 9c54d03 to 7d60e17 Compare July 2, 2026 00:45
@link2xt link2xt marked this pull request as ready for review July 2, 2026 03:26
… public key

We use the timestamp of the latest transport modification
as the timestamp of the Direct Key Signature.
However, first transport is created before the public key
and existing transports may even have zero timestamp
if they were created before migration 142.

For interoperability with Sequoia-PGP,
make sure signatures always have a timestamp
that is not in the past compared to the timestamp
of the primary key.
@link2xt link2xt force-pushed the link2xt/ultxzussxnkk branch from 7d60e17 to 47193f7 Compare July 8, 2026 00:25
@link2xt

link2xt commented Jul 8, 2026

Copy link
Copy Markdown
Collaborator Author

Added (previously failing) test.

@link2xt link2xt merged commit 31b2d79 into main Jul 8, 2026
31 checks passed
@link2xt link2xt deleted the link2xt/ultxzussxnkk branch July 8, 2026 17:41
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.

Delta Chat keydata contains inconsistent timestamps

2 participants