Skip to content

Commit

Permalink
Implement NWC (NIP-47) for CDK wallets.
Browse files Browse the repository at this point in the history
  • Loading branch information
davidcaseria committed Oct 30, 2024
1 parent 4fdc4f4 commit fc9de24
Show file tree
Hide file tree
Showing 3 changed files with 671 additions and 0 deletions.
28 changes: 28 additions & 0 deletions crates/cdk-nostr/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
[package]
name = "cdk-nostr"
version = "0.4.0"
edition = "2021"
authors = ["CDK Developers"]
license = "MIT"
homepage = "https://github.com/cashubtc/cdk"
repository = "https://github.com/cashubtc/cdk.git"
rust-version = "1.63.0"
description = "CDK implementation of relevant Nostr NIPs"

[dependencies]
cdk = { path = "../cdk", version = "0.4.0", default-features = false, features = [
"wallet",
] }
lightning-invoice = "0.32.0"
nostr-relay-pool = { version = "0.35.0", default-features = false }
nostr-sdk = { version = "0.35.0", default-features = false }
thiserror = "1"
tracing = { version = "0.1", default-features = false, features = [
"attributes",
"log",
] }
tokio = { version = "1", default-features = false, features = ["sync"] }

[features]
default = ["nip47"]
nip47 = ["nostr-sdk/nip47"]
7 changes: 7 additions & 0 deletions crates/cdk-nostr/src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
//! CDK implementation of relevant Nostr NIPs.
#![warn(missing_docs)]
#![warn(rustdoc::bare_urls)]

#[cfg(feature = "nip47")]
pub mod nip47;
Loading

0 comments on commit fc9de24

Please sign in to comment.