fix: bolt12 is nut25 (#1020)

This commit is contained in:
thesimplekid
2025-08-31 23:05:24 +01:00
committed by GitHub
parent 7a71a37eab
commit 7246ea2e10
5 changed files with 7 additions and 3 deletions

View File

@@ -13,6 +13,8 @@
- cdk-common: Refactored `MintPayment` trait method `wait_any_incoming_payment` to `wait_payment_event` with event-driven architecture ([thesimplekid]).
- cdk-common: Updated `wait_payment_event` return type to stream `Event` enum instead of `WaitPaymentResponse` directly ([thesimplekid]).
- cdk: Updated mint payment handling to process payment events through new `Event` enum pattern ([thesimplekid]).
- cashu: Updated BOLT12 payment method specification from NUT-24 to NUT-25 ([thesimplekid]).
- cdk: Updated BOLT12 import references from nut24 to nut25 module ([thesimplekid]).
## [0.12.0](https://github.com/cashubtc/cdk/releases/tag/v0.12.0)

View File

@@ -87,6 +87,7 @@ gossip_source_type = "rgs"
| [21][21] | Clear Authentication | :heavy_check_mark: |
| [22][22] | Blind Authentication | :heavy_check_mark: |
| [23][23] | Payment Method: BOLT11 | :heavy_check_mark: |
| [25][25] | Payment Method: BOLT12 | :heavy_check_mark: |
## License
@@ -126,3 +127,4 @@ Please see the [development guide](DEVELOPMENT.md).
[21]: https://github.com/cashubtc/nuts/blob/main/21.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

View File

@@ -24,7 +24,7 @@ pub mod nut18;
pub mod nut19;
pub mod nut20;
pub mod nut23;
pub mod nut24;
pub mod nut25;
#[cfg(feature = "auth")]
mod auth;
@@ -68,4 +68,4 @@ pub use nut23::{
MeltOptions, MeltQuoteBolt11Request, MeltQuoteBolt11Response, MintQuoteBolt11Request,
MintQuoteBolt11Response, QuoteState as MintQuoteState,
};
pub use nut24::{MeltQuoteBolt12Request, MintQuoteBolt12Request, MintQuoteBolt12Response};
pub use nut25::{MeltQuoteBolt12Request, MintQuoteBolt12Request, MintQuoteBolt12Response};

View File

@@ -1,7 +1,7 @@
use std::collections::HashMap;
use cdk_common::nut04::MintMethodOptions;
use cdk_common::nut24::MintQuoteBolt12Request;
use cdk_common::nut25::MintQuoteBolt12Request;
use cdk_common::wallet::{Transaction, TransactionDirection};
use cdk_common::{Proofs, SecretKey};
use tracing::instrument;