From 7fcc612e1efa7f9afc80b5957cfce835377e2af0 Mon Sep 17 00:00:00 2001 From: link2xt Date: Mon, 8 Jun 2026 00:23:04 +0200 Subject: [PATCH 1/3] refactor: remove Context argument from secret_key_to_public_key() --- src/key.rs | 5 +---- src/mimefactory/mimefactory_tests.rs | 1 - 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/src/key.rs b/src/key.rs index e7d69eb5fe..ae6f9994ac 100644 --- a/src/key.rs +++ b/src/key.rs @@ -124,14 +124,11 @@ pub trait DcKey: Serialize + Deserializable + Clone { /// Converts secret key to public key. pub(crate) fn secret_key_to_public_key( - context: &Context, mut signed_secret_key: SignedSecretKey, timestamp: u32, addr: &str, relay_addrs: &str, ) -> Result { - info!(context, "Converting secret key to public key."); - // Make sure timestamp of created signatures // is not in the past compared to the primary key timestamp. let timestamp = std::cmp::max( @@ -304,7 +301,7 @@ pub(crate) async fn load_self_public_key_opt(context: &Context) -> Result