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

Feature request: add NUT-15 Multinut payments to CLNRestWallet #536

Open
callebtc opened this issue May 23, 2024 · 2 comments
Open

Feature request: add NUT-15 Multinut payments to CLNRestWallet #536

callebtc opened this issue May 23, 2024 · 2 comments
Labels
feature request I want this. good first issue A great way to get into Cashu development

Comments

@callebtc
Copy link
Collaborator

It would be great to have MPP with CLN as well. Here is how it works with LND:

async def pay_partial_invoice(

@callebtc callebtc added feature request I want this. good first issue A great way to get into Cashu development labels May 23, 2024
@lollerfirst
Copy link
Contributor

lollerfirst commented Jun 10, 2024

I take it that in NUT-15, Alice creates a single bolt11 invoice for a certain amount, which is her amount across all the different mints. So then when she supplies that invoice and the proofs that add up to a certain partial amount on a single mint, doesn't this check (NUT-5) prevent partial payments entirely?

# verify that the amount of the input proofs is equal to the amount of the quote
total_provided = sum_proofs(proofs)
total_needed = melt_quote.amount + (melt_quote.fee_reserve or 0)
if not total_provided >= total_needed:
raise TransactionError(
f"not enough inputs provided for melt. Provided: {total_provided}, needed: {total_needed}"
)

@lollerfirst
Copy link
Contributor

Ok I was confused now I managed to understand this anyway, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request I want this. good first issue A great way to get into Cashu development
Projects
None yet
Development

No branches or pull requests

2 participants