This commit is contained in:
2026-09-04 08:16:05 +07:00
parent 212f35d6bb
commit 17de4f6376
43 changed files with 376 additions and 721 deletions
-4
View File
@@ -12,10 +12,6 @@ use nostr_sdk::prelude::*;
use crate::signer::UniversalSigner;
/// Open or create the LMDB database at `db_path`.
/// Build a Signed client and a fresh signer for it.
/// The SDK manages its own internal tokio runtime.
/// The returned client can be driven by GPUI's executors.
#[cfg(not(target_arch = "wasm32"))]
pub async fn new_backend(db_path: impl AsRef<Path>) -> Result<(Client, UniversalSigner)> {
let signer = UniversalSigner::new(Keys::generate());
-2
View File
@@ -32,8 +32,6 @@ impl UniversalSignerError {
}
/// A type-erased signer whose inner signer can be swapped in-place.
/// Swaps happen after login or logout.
/// All clones see the swap.
#[derive(Clone, Debug)]
pub struct UniversalSigner {
inner: Arc<RwLock<Arc<dyn InnerSigner>>>,
-1
View File
@@ -1,7 +1,6 @@
use nostr_sdk::prelude::*;
/// A lightweight change notification for the UI.
/// Heavy data stays in the database, consumers re-query on receipt.
#[derive(Debug, Clone)]
pub struct Update {
pub kind: Kind,