Skip to content

Commit

Permalink
NIP-49: Nostr Wallet Auth
Browse files Browse the repository at this point in the history
  • Loading branch information
benthecarman committed Jan 14, 2024
1 parent 30d24b2 commit 2a5ae8d
Show file tree
Hide file tree
Showing 4 changed files with 369 additions and 1 deletion.
10 changes: 10 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion crates/nostr/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ alloc = [
"serde_json/alloc",
]
blocking = ["reqwest?/blocking"]
all-nips = ["nip04", "nip05", "nip06", "nip07", "nip11", "nip44", "nip46", "nip47", "nip57"]
all-nips = ["nip04", "nip05", "nip06", "nip07", "nip11", "nip44", "nip46", "nip47", "nip49", "nip57"]
nip03 = ["dep:nostr-ots"]
nip04 = ["dep:aes", "dep:base64", "dep:cbc"]
nip05 = ["dep:reqwest"]
Expand All @@ -51,6 +51,7 @@ nip11 = ["dep:reqwest"]
nip44 = ["dep:base64", "dep:chacha20"]
nip46 = ["nip04"]
nip47 = ["nip04"]
nip49 = ["nip04", "dep:itertools"]
nip57 = ["dep:aes", "dep:cbc"]

[dependencies]
Expand All @@ -60,6 +61,7 @@ bip39 = { version = "2.0", default-features = false, optional = true }
bitcoin = { version = "0.30", default-features = false, features = ["rand", "serde"] }
cbc = { version = "0.1", optional = true }
chacha20 = { version = "0.9", optional = true }
itertools = { version = "0.12.0", optional = true }
negentropy = { version = "0.3", default-features = false }
nostr-ots = { version = "0.2", optional = true }
once_cell = { workspace = true, optional = true }
Expand Down
2 changes: 2 additions & 0 deletions crates/nostr/src/nips/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ pub mod nip46;
#[cfg(feature = "nip47")]
pub mod nip47;
pub mod nip48;
#[cfg(feature = "nip49")]
pub mod nip49;
pub mod nip53;
#[cfg(feature = "nip57")]
pub mod nip57;
Expand Down
Loading

0 comments on commit 2a5ae8d

Please sign in to comment.