From 9a450f2ce740da08843a541d230c43194b934f5f Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Fri, 22 Mar 2024 15:51:36 +0000 Subject: replace XOnlyPublicKey with wrapper PublicKey to reflect new name in rust-nostr --- src/key_handling/users.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/key_handling') diff --git a/src/key_handling/users.rs b/src/key_handling/users.rs index c061cd3..751c577 100644 --- a/src/key_handling/users.rs +++ b/src/key_handling/users.rs @@ -32,13 +32,13 @@ pub trait UserManagement { &self, #[cfg(test)] client: &MockConnect, #[cfg(not(test))] client: &Client, - public_key: &XOnlyPublicKey, + public_key: &PublicKey, after: u64, ) -> Result; - fn get_user_from_cache(&self, public_key: &XOnlyPublicKey) -> Result; + fn get_user_from_cache(&self, public_key: &PublicKey) -> Result; fn add_user_to_config( &self, - public_key: XOnlyPublicKey, + public_key: PublicKey, encrypted_secret_key: Option, overwrite: bool, ) -> Result<()>; @@ -99,7 +99,7 @@ impl UserManagement for UserManager { fn add_user_to_config( &self, - public_key: XOnlyPublicKey, + public_key: PublicKey, encrypted_secret_key: Option, overwrite: bool, ) -> Result<()> { @@ -129,7 +129,7 @@ impl UserManagement for UserManager { .context("failed to save application configuration with new user details in") } - fn get_user_from_cache(&self, public_key: &XOnlyPublicKey) -> Result { + fn get_user_from_cache(&self, public_key: &PublicKey) -> Result { let cfg = self .config_manager .load() @@ -148,7 +148,7 @@ impl UserManagement for UserManager { &self, #[cfg(test)] client: &MockConnect, #[cfg(not(test))] client: &Client, - public_key: &XOnlyPublicKey, + public_key: &PublicKey, use_cache_unless_checked_more_than_x_secs_ago: u64, ) -> Result { let cfg = self -- cgit v1.2.3