minibits-cash / minibits_wallet

MIT License
74 stars 7 forks source link

Tokens with incorrect keysets cause failed payments #25

Closed minibits-cash closed 11 months ago

minibits-cash commented 1 year ago

During settlement of lightning invoice, mint might return new proofs, that represent spared sats originally sent by wallet to cover lightning payment fee that happened to be lower then estimated.

In case of Nutshell and Cashu mint in LNbits extenstion, returned proof might have different keyset than the one published by the mint. That means, that all further payments involving those proofs will fail, usually for the payer, in some circumstances (ecash send with amount matching denominations) for the payee.

Issue has been discovered on mint.minibits.cash today.

Fix has been shipped as 0.3.2 Cashu LNbits extension, but invalid proofs remain in the impacted wallets, we will think of best recovery process. Please update mints running on Nutshell / LNbits.

minibits-cash commented 1 year ago

Ok, for wallets with impacted mints, recovery is simple (after the mint is updated): Send all your mint balance to self (through normal ecash transaction - copy pending token and receive it back to the wallet. If you hate copy paste as I do, add yourself to your contacts and send to yourself through nostr like a pro :)