Skip to content

Commit 0f47fd0

Browse files
committed
NIP-49: Nostr Wallet Auth
1 parent b1f7215 commit 0f47fd0

File tree

4 files changed

+406
-8
lines changed

4 files changed

+406
-8
lines changed

Cargo.lock

Lines changed: 47 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/nostr/Cargo.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ alloc = [
4141
"serde_json/alloc",
4242
]
4343
blocking = ["reqwest?/blocking"]
44-
all-nips = ["nip04", "nip05", "nip06", "nip07", "nip11", "nip44", "nip46", "nip47", "nip57"]
44+
all-nips = ["nip04", "nip05", "nip06", "nip07", "nip11", "nip44", "nip46", "nip47", "nip49", "nip57"]
4545
nip03 = ["dep:nostr-ots"]
4646
nip04 = ["dep:aes", "dep:base64", "dep:cbc"]
4747
nip05 = ["dep:reqwest"]
@@ -51,6 +51,7 @@ nip11 = ["dep:reqwest"]
5151
nip44 = ["dep:base64", "dep:chacha20"]
5252
nip46 = ["nip04"]
5353
nip47 = ["nip04"]
54+
nip49 = ["nip04", "dep:itertools"]
5455
nip57 = ["dep:aes", "dep:cbc"]
5556

5657
[dependencies]
@@ -60,6 +61,7 @@ bip39 = { version = "2.0", default-features = false, optional = true }
6061
bitcoin = { version = "0.30", default-features = false, features = ["rand", "serde"] }
6162
cbc = { version = "0.1", optional = true }
6263
chacha20 = { version = "0.9", optional = true }
64+
itertools = { version = "0.12.0", optional = true }
6365
negentropy = { version = "0.3", default-features = false }
6466
nostr-ots = { version = "0.2", optional = true }
6567
once_cell = { workspace = true, optional = true }

crates/nostr/src/nips/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ pub mod nip46;
2929
#[cfg(feature = "nip47")]
3030
pub mod nip47;
3131
pub mod nip48;
32+
#[cfg(feature = "nip49")]
33+
pub mod nip49;
3234
pub mod nip53;
3335
#[cfg(feature = "nip57")]
3436
pub mod nip57;

0 commit comments

Comments
 (0)