refactor: Client keys and Identity (#61)

* .

* .

* .

* .

* refactor client keys

* .

* .

* refactor

* .

* .

* .

* update new account
This commit is contained in:
reya
2025-06-17 07:16:16 +07:00
committed by GitHub
parent cc36adeafe
commit 440f17af18
31 changed files with 1460 additions and 586 deletions

70
Cargo.lock generated
View File

@@ -925,6 +925,7 @@ dependencies = [
"fuzzy-matcher",
"global",
"gpui",
"identity",
"itertools 0.13.0",
"log",
"nostr",
@@ -971,6 +972,18 @@ dependencies = [
"libloading",
]
[[package]]
name = "client_keys"
version = "0.1.5"
dependencies = [
"anyhow",
"global",
"gpui",
"log",
"nostr-sdk",
"smallvec",
]
[[package]]
name = "cmake"
version = "0.1.54"
@@ -1096,10 +1109,12 @@ dependencies = [
"global",
"gpui",
"itertools 0.13.0",
"nostr-connect",
"nostr-sdk",
"qrcode-generator",
"smallvec",
"smol",
"webbrowser",
]
[[package]]
@@ -1144,11 +1159,13 @@ dependencies = [
"anyhow",
"auto_update",
"chats",
"client_keys",
"common",
"dirs 5.0.1",
"futures",
"global",
"gpui",
"identity",
"itertools 0.13.0",
"log",
"nostr-connect",
@@ -1164,7 +1181,6 @@ dependencies = [
"theme",
"tracing-subscriber",
"ui",
"webbrowser",
]
[[package]]
@@ -2189,7 +2205,6 @@ dependencies = [
"futures",
"log",
"nostr-connect",
"nostr-keyring",
"nostr-sdk",
"rustls",
"smol",
@@ -2802,6 +2817,24 @@ dependencies = [
"zerovec",
]
[[package]]
name = "identity"
version = "0.1.5"
dependencies = [
"anyhow",
"client_keys",
"common",
"global",
"gpui",
"log",
"nostr-connect",
"nostr-sdk",
"oneshot",
"settings",
"smallvec",
"ui",
]
[[package]]
name = "idna"
version = "1.0.3"
@@ -3049,20 +3082,6 @@ dependencies = [
"wasm-bindgen",
]
[[package]]
name = "keyring"
version = "3.6.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1961983669d57bdfe6c0f3ef8e4c229b5ef751afcc7d87e4271d2f71f6ccfa8b"
dependencies = [
"byteorder",
"linux-keyutils",
"log",
"security-framework 2.11.1",
"security-framework 3.2.0",
"windows-sys 0.59.0",
]
[[package]]
name = "khronos-egl"
version = "6.0.0"
@@ -3170,16 +3189,6 @@ dependencies = [
"memchr",
]
[[package]]
name = "linux-keyutils"
version = "0.2.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "761e49ec5fd8a5a463f9b84e877c373d888935b71c6be78f3767fe2ae6bed18e"
dependencies = [
"bitflags 2.9.1",
"libc",
]
[[package]]
name = "linux-raw-sys"
version = "0.4.15"
@@ -3586,15 +3595,6 @@ dependencies = [
"tokio",
]
[[package]]
name = "nostr-keyring"
version = "0.42.0"
source = "git+https://github.com/rust-nostr/nostr#4096b9da00f18c3089f734b27ce1388616f3cb13"
dependencies = [
"keyring",
"nostr",
]
[[package]]
name = "nostr-lmdb"
version = "0.42.0"