Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
241 changes: 136 additions & 105 deletions Cargo.lock

Large diffs are not rendered by default.

154 changes: 88 additions & 66 deletions Cargo.lock.msrv

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ strum = "0.27.1"
strum_macros = "0.27.1"
rustls = { version = "0.23.27", default-features = false, features = ["ring"] }
prometheus = { version = "0.13.4", features = ["process"], default-features = false }
nostr-sdk = { version = "0.43.0", default-features = false, features = [
nostr-sdk = { version = "0.44.1", default-features = false, features = [
"nip04",
"nip44",
"nip59"
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ For a guide to settings up a development environment see [DEVELOPMENT.md](./DEVE
| [22][22] | Blind Authentication | :heavy_check_mark: |
| [23][23] | Payment Method: BOLT11 | :heavy_check_mark: |
| [25][25] | Payment Method: BOLT12 | :heavy_check_mark: |
| [26][26] | Payment Request Bech32m Encoding | :heavy_check_mark: |
| [27][27] | Nostr Mint Backup | :heavy_check_mark: |


## License
Expand Down Expand Up @@ -120,3 +122,5 @@ Please see the [development guide](DEVELOPMENT.md).
[22]: https://github.com/cashubtc/nuts/blob/main/22.md
[23]: https://github.com/cashubtc/nuts/blob/main/23.md
[25]: https://github.com/cashubtc/nuts/blob/main/25.md
[26]: https://github.com/cashubtc/nuts/blob/main/26.md
[27]: https://github.com/cashubtc/nuts/blob/main/27.md
2 changes: 2 additions & 0 deletions crates/cashu/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ swagger = ["dep:utoipa"]
mint = []
wallet = []
auth = ["dep:strum", "dep:strum_macros", "dep:regex"]
nostr = ["dep:nostr-sdk"]
bench = []

[dependencies]
Expand All @@ -36,6 +37,7 @@ serde_with.workspace = true
regex = { workspace = true, optional = true }
strum = { workspace = true, optional = true }
strum_macros = { workspace = true, optional = true }
nostr-sdk = { workspace = true, optional = true }
zeroize = "1"
web-time.workspace = true

Expand Down
6 changes: 6 additions & 0 deletions crates/cashu/src/nuts/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ pub mod nut20;
pub mod nut23;
pub mod nut25;
pub mod nut26;
#[cfg(all(feature = "wallet", feature = "nostr"))]
pub mod nut27;

#[cfg(feature = "auth")]
mod auth;
Expand Down Expand Up @@ -74,3 +76,7 @@ pub use nut23::{
MintQuoteBolt11Response, QuoteState as MintQuoteState,
};
pub use nut25::{MeltQuoteBolt12Request, MintQuoteBolt12Request, MintQuoteBolt12Response};
#[cfg(all(feature = "wallet", feature = "nostr"))]
pub use nut27::{
backup_filter_params, create_backup_event, decrypt_backup_event, derive_nostr_keys, MintBackup,
};
3 changes: 2 additions & 1 deletion crates/cashu/src/nuts/nut26/encoding.rs
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,10 @@ impl PaymentRequest {
/// # Examples
///
/// ```
/// use std::str::FromStr;
///
/// use cashu::nuts::nut18::PaymentRequest;
/// use cashu::{Amount, MintUrl};
/// use std::str::FromStr;
///
/// let payment_request = PaymentRequest {
/// payment_id: Some("test123".to_string()),
Expand Down
Loading