Skip to content

feat: Add number_of_keys to statistics#8297

Open
Hocuri wants to merge 1 commit into
mainfrom
hoc/add-number_of_keys-to-stats
Open

feat: Add number_of_keys to statistics#8297
Hocuri wants to merge 1 commit into
mainfrom
hoc/add-number_of_keys-to-stats

Conversation

@Hocuri
Copy link
Copy Markdown
Collaborator

@Hocuri Hocuri commented Jun 2, 2026

As of 3b29469, all public keys except for the currently-used one are ignored. But Delta Chat still tries to use all private keys for decryption.

This PR adds the information how many keys there are in the database. If there is more than one, we know that the user imported their own key back when that was possible. This info is interesting both for ourselves and for the Cispa researchers that want to write a paper about Delta Chat.

An alternative to this PR would be to make key_create_timestamps actually contain the full list of key creation timestamps. I'm not sure if that's worth the effort, though.

Follow-up to #8293

@Hocuri Hocuri requested a review from link2xt June 2, 2026 11:38
Comment thread src/stats.rs
core_version: String,
number_of_transports: usize,
key_create_timestamps: Vec<u32>,
number_of_keys: u32,
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Better usize for consistency with number_of_transports

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