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/config.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/config.rs') diff --git a/src/config.rs b/src/config.rs index 2370e34..7fca446 100644 --- a/src/config.rs +++ b/src/config.rs @@ -4,7 +4,7 @@ use anyhow::{anyhow, Context, Result}; use directories::ProjectDirs; #[cfg(test)] use mockall::*; -use nostr::{secp256k1::XOnlyPublicKey, ToBech32}; +use nostr::{PublicKey, ToBech32}; use serde::{self, Deserialize, Serialize}; #[derive(Default)] @@ -69,7 +69,7 @@ pub struct MyConfig { #[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Eq)] pub struct UserRef { - pub public_key: XOnlyPublicKey, + pub public_key: PublicKey, pub encrypted_key: String, pub metadata: UserMetadata, pub relays: UserRelays, @@ -77,7 +77,7 @@ pub struct UserRef { } impl UserRef { - pub fn new(public_key: XOnlyPublicKey, encrypted_key: String) -> Self { + pub fn new(public_key: PublicKey, encrypted_key: String) -> Self { Self { public_key, encrypted_key, -- cgit v1.2.3