Skip to content

refactor: move ensure_secret_key_exists into key.rs#8353

Merged
link2xt merged 1 commit into
mainfrom
link2xt/kuoszqtkyklu
Jun 21, 2026
Merged

refactor: move ensure_secret_key_exists into key.rs#8353
link2xt merged 1 commit into
mainfrom
link2xt/kuoszqtkyklu

Conversation

@link2xt

@link2xt link2xt commented Jun 20, 2026

Copy link
Copy Markdown
Collaborator

In #8345 i'm removing EncryptHelper so this function and the tests are the only things that remain in e2ee module. If we move the remaining tests somewhere then we can remove e2ee module completely.

@link2xt link2xt force-pushed the link2xt/kuoszqtkyklu branch from 5519f33 to 0358ace Compare June 20, 2026 20:38
Comment thread src/e2ee.rs
/// sent but in a few locations there are no such guarantees,
/// e.g. when exporting keys, and calling this function ensures a
/// private key will be present.
// TODO, remove this once deltachat::key::Key no longer exists.

@link2xt link2xt Jun 20, 2026

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Also removed this TODO. Unclear what "this" is and the function itself cannot be removed easily, it is used for example to make sure the key exists before exporting a backup.

@link2xt link2xt merged commit 0a82d73 into main Jun 21, 2026
31 checks passed
@link2xt link2xt deleted the link2xt/kuoszqtkyklu branch June 21, 2026 04:18
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.

2 participants