feat: Sign using NIP-07

Signed-off-by: Awiteb <a@4rs.nl>
This commit is contained in:
Awiteb
2025-08-06 07:58:06 +00:00
parent ad215002e2
commit 904d14064f
17 changed files with 272 additions and 40 deletions

39
Cargo.lock generated
View File

@@ -837,6 +837,12 @@ version = "1.10.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6dbf3de79e51f3d586ab4cb9d5c3e2c14aa28ed23d180cf89b4df0454a69cc87"
[[package]]
name = "httpdate"
version = "1.0.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "df3b46402a9d5adb4c86a0cf463f42e19994e3ee891101b1841f30a545cb49a9"
[[package]]
name = "hyper"
version = "1.6.0"
@@ -850,6 +856,7 @@ dependencies = [
"http",
"http-body",
"httparse",
"httpdate",
"itoa",
"pin-project-lite",
"smallvec",
@@ -1235,6 +1242,7 @@ dependencies = [
"either",
"futures",
"nostr",
"nostr-browser-signer-proxy",
"nostr-connect",
"nostr-keyring",
"nostr-sdk",
@@ -1279,6 +1287,25 @@ dependencies = [
"url",
]
[[package]]
name = "nostr-browser-signer-proxy"
version = "0.43.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "36272167bc7aa8b87d0638675d1b0fd7bff04eb6ab49f97303229a06a7bbc849"
dependencies = [
"atomic-destructor",
"bytes",
"http-body-util",
"hyper",
"hyper-util",
"nostr",
"serde",
"serde_json",
"tokio",
"tracing",
"uuid",
]
[[package]]
name = "nostr-connect"
version = "0.43.0"
@@ -2494,6 +2521,18 @@ version = "0.2.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "06abde3611657adf66d383f00b093d7faecc7fa57071cce2578660c9f1010821"
[[package]]
name = "uuid"
version = "1.17.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3cf4199d1e5d15ddd86a694e4d0dffa9c323ce759fea589f00fef9d81cc1931d"
dependencies = [
"getrandom 0.3.3",
"js-sys",
"serde",
"wasm-bindgen",
]
[[package]]
name = "valuable"
version = "0.1.1"