diff options
Diffstat (limited to 'src/config.rs')
| -rw-r--r-- | src/config.rs | 6 |
1 files changed, 3 insertions, 3 deletions
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}; | |||
| 4 | use directories::ProjectDirs; | 4 | use directories::ProjectDirs; |
| 5 | #[cfg(test)] | 5 | #[cfg(test)] |
| 6 | use mockall::*; | 6 | use mockall::*; |
| 7 | use nostr::{secp256k1::XOnlyPublicKey, ToBech32}; | 7 | use nostr::{PublicKey, ToBech32}; |
| 8 | use serde::{self, Deserialize, Serialize}; | 8 | use serde::{self, Deserialize, Serialize}; |
| 9 | 9 | ||
| 10 | #[derive(Default)] | 10 | #[derive(Default)] |
| @@ -69,7 +69,7 @@ pub struct MyConfig { | |||
| 69 | 69 | ||
| 70 | #[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Eq)] | 70 | #[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Eq)] |
| 71 | pub struct UserRef { | 71 | pub struct UserRef { |
| 72 | pub public_key: XOnlyPublicKey, | 72 | pub public_key: PublicKey, |
| 73 | pub encrypted_key: String, | 73 | pub encrypted_key: String, |
| 74 | pub metadata: UserMetadata, | 74 | pub metadata: UserMetadata, |
| 75 | pub relays: UserRelays, | 75 | pub relays: UserRelays, |
| @@ -77,7 +77,7 @@ pub struct UserRef { | |||
| 77 | } | 77 | } |
| 78 | 78 | ||
| 79 | impl UserRef { | 79 | impl UserRef { |
| 80 | pub fn new(public_key: XOnlyPublicKey, encrypted_key: String) -> Self { | 80 | pub fn new(public_key: PublicKey, encrypted_key: String) -> Self { |
| 81 | Self { | 81 | Self { |
| 82 | public_key, | 82 | public_key, |
| 83 | encrypted_key, | 83 | encrypted_key, |