cashubtc / nutshell

Chaumian ecash wallet and mint for Bitcoin
https://docs.cashu.space
MIT License
338 stars 78 forks source link

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

Open callebtc opened 1 month ago

callebtc commented 1 month ago

It would be great to have MPP with CLN as well. Here is how it works with LND: https://github.com/cashubtc/nutshell/blob/61cf7def24fa7104d2d195f0cb5105ee8687773f/cashu/lightning/lndrest.py#L198

lollerfirst commented 3 weeks ago

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? https://github.com/cashubtc/nutshell/blob/d80280e35d8947ee866df6c15dec810767bf30b2/cashu/mint/ledger.py#L769-L775

lollerfirst commented 3 weeks ago

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