stackernews / stacker.news

Internet communities that pay you Bitcoin
https://stacker.news
MIT License
404 stars 105 forks source link

Add preimages to bolt11 info for outgoing payments #1105

Closed supertestnet closed 2 months ago

supertestnet commented 2 months ago

Is your feature request related to a problem? Please describe. I'm always frustrated when I pay an invoice using my stacker news wallet and then cannot find the preimage to that payment under bolt11 info. This is useful because sometimes someone asks me to provide my preimage as part of debugging a payment issues. I can usually get around this by telling the payment hash instead, because most of the time you can use that to look up a paid invoice, but...

Describe the solution you'd like ...it would be better if stacker news showed me the preimage. You have to have it otherwise you wouldn't consider the invoice paid, and it would help me demonstrate that I've paid the invoice by proving I know the preimage.

Describe alternatives you've considered I could just tell them what payment hash the payment had and then rely on them to look it up and see that it's been paid, but it's better to demonstrate that it's been paid...and it's also useful for teaching people how lightning works. A string that proves you paid through cryptography is better than a green checkmark where I just have to tell the person I'm teaching "they're only showing this because they know it's been paid, and they know that because they have the preimage, even though they're not showing it for some reason."