Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bolt12 with support for multiple payments per mint quote #404

Draft
wants to merge 43 commits into
base: main
Choose a base branch
from

Conversation

thesimplekid
Copy link
Collaborator

@thesimplekid thesimplekid commented Oct 13, 2024

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).

Backend Send Receive
CLN ✔️ ✔️
LND* 🚧
PHD** ✔️
LNBITS
Strike***

* 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

@thesimplekid thesimplekid marked this pull request as draft October 17, 2024 22:29
@thesimplekid thesimplekid force-pushed the multiple_bolt12 branch 5 times, most recently from 8717405 to 3f494bc Compare October 25, 2024 12:50
@thesimplekid thesimplekid changed the title Hackathone multiple payment to bolt12 Bolt12 with support for multiple payments per mint quote Oct 26, 2024
@thesimplekid thesimplekid mentioned this pull request Oct 26, 2024
@thesimplekid thesimplekid self-assigned this Oct 26, 2024
@thesimplekid thesimplekid force-pushed the multiple_bolt12 branch 2 times, most recently from e24f081 to b8198aa Compare October 30, 2024 13:21
@thesimplekid thesimplekid added enhancement New feature or request NUT change labels Nov 15, 2024
@@ -77,7 +79,7 @@ enum Commands {
#[tokio::main]
async fn main() -> Result<()> {
let args: Cli = Cli::parse();
let default_filter = args.log_level;
let default_filter = "warn";
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

set back to arg

use cdk::wallet::multi_mint_wallet::{MultiMintWallet, WalletKey};
use cdk::Bolt11Invoice;
// use cdk::Bolt11Invoice;
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// use cdk::Bolt11Invoice;

Comment on lines 98 to 101
/// Amount that has been paid
pub amount_paid: Amount,
/// Amount that has been issued
pub amount_issued: Amount,
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move these to bolt12 specific

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request new nut
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CDK-CLI: Add command/flag to claim mints paid after exit
2 participants