upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/src/config.rs
diff options
context:
space:
mode:
authorDanConwayDev <DanConwayDev@protonmail.com>2024-03-22 15:51:36 +0000
committerDanConwayDev <DanConwayDev@protonmail.com>2024-03-22 15:51:36 +0000
commit9a450f2ce740da08843a541d230c43194b934f5f (patch)
tree77505c28638e7fbc610d23c7844d3a1f260bac7a /src/config.rs
parent0d7a8383d7d54e64bb0e1d5f4e06110c1e6a818b (diff)
replace XOnlyPublicKey with wrapper PublicKey
to reflect new name in rust-nostr
Diffstat (limited to 'src/config.rs')
-rw-r--r--src/config.rs6
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};
4use directories::ProjectDirs; 4use directories::ProjectDirs;
5#[cfg(test)] 5#[cfg(test)]
6use mockall::*; 6use mockall::*;
7use nostr::{secp256k1::XOnlyPublicKey, ToBech32}; 7use nostr::{PublicKey, ToBech32};
8use serde::{self, Deserialize, Serialize}; 8use 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)]
71pub struct UserRef { 71pub 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
79impl UserRef { 79impl 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,