Bolt12 with support for multiple payments per mint quote#404
Bolt12 with support for multiple payments per mint quote#404thesimplekid wants to merge 43 commits intocashubtc:mainfrom
Conversation
a18bf73 to
962e614
Compare
8717405 to
3f494bc
Compare
e24f081 to
b8198aa
Compare
feat: mint builder
fe810db to
6410d2b
Compare
e90dc6d to
fa2fb58
Compare
crates/cdk-cli/src/main.rs
Outdated
| async fn main() -> Result<()> { | ||
| let args: Cli = Cli::parse(); | ||
| let default_filter = args.log_level; | ||
| let default_filter = "warn"; |
There was a problem hiding this comment.
set back to arg
| use cdk::nuts::{CurrencyUnit, PaymentMethod}; | ||
| use cdk::wallet::multi_mint_wallet::{MultiMintWallet, WalletKey}; | ||
| use cdk::Bolt11Invoice; | ||
| // use cdk::Bolt11Invoice; |
There was a problem hiding this comment.
| // use cdk::Bolt11Invoice; |
crates/cdk/src/nuts/nut04.rs
Outdated
| /// Amount that has been paid | ||
| pub amount_paid: Amount, | ||
| /// Amount that has been issued | ||
| pub amount_issued: Amount, |
There was a problem hiding this comment.
Move these to bolt12 specific
|
Dropping this comment to see if there will/should be a Bolt12 specific event for this? or are the Quotes relatively the same for 11 and 12 that this works for both? For context, I'm interested in subbing to events that occur when Bolt12 offers are paid and this seems like the right place. If I'm off-base in my understand, perhaps there's a better way of being alerted to a Bolt12 offer being paid? |
I haven't thought about this since i did this before websockets but I think this is a good point I think the mint should send a notification each time the mint quote is paid for quote thats payable multiple times. I'm picking this pack up and will add this as well. |
|
superseded by #709 |
|
close for #709 |
This PR included bolt12 support for both the mint and the wallet. It also includes a large refactor of mintd, these really should have been separated but too late now (sorry).
* With use of LNDK as lnd does not directly support bolt12
** PHD doesnt allow creation of one time use bolt12, so receive cannot be supported
*** Strike api doesn't seem to support bolt12, coming soon?
Related Issues should be closed by this PR