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

Consider best practices for verifying lightning payments #1013

Open
GBKS opened this issue May 10, 2023 · 3 comments
Open

Consider best practices for verifying lightning payments #1013

GBKS opened this issue May 10, 2023 · 3 comments
Labels
Daily spending wallet Referring to the Daily spending wallet reference design section. Design Task is about designing something.

Comments

@GBKS
Copy link
Contributor

GBKS commented May 10, 2023

We may have some content on this already, but this would be good to review and have clear guidelines for. Based on this Twitter thread/request.

@GBKS GBKS added Design Task is about designing something. Daily spending wallet Referring to the Daily spending wallet reference design section. labels May 10, 2023
@paulosacramento
Copy link
Contributor

I read the Twitter thread but didn't really understand what he is proposing. Could you explain it to me? I'm writing about receipts for payments at the moment. So this really interests me.

@GBKS
Copy link
Contributor Author

GBKS commented May 12, 2023

Let's take a look at the thread:

The buyer sent them a preimage as proof of payment and they didn't know what to do with it.

So the buyer seems to be savvy and understand what the preimage is, but the merchant doesn't. Maybe sharing the preimage can be improved. Like a "Share payment confirmation" button that includes a line of text and link to explain what it is, so the merchant has a starting point.

I asked them to hash the preimage, pull up the original invoice, extract its payment hash, and verify it matches the preimage hash. Then they didn't know what that meant...

I would also not know how to do this. Ideal scenario is something like that the payment proof is some type of link the merchant can click, the wallet opens, checks against the payment history and pulls up the matching one with a "Payment confirmed" message or so. A wallet user should not have to extract payment hashes, etc, that should be done automatically for them. I don't think there is a URL specification for payment proofs. So one option could be that the wallet automatically checks the clipboard on open to check for preimages. A third option could be that the transaction history includes a '...' button with extra options including a "Verify payment" one that explains the process and allows for pasting in a preimage.

That's my understanding at least 😀

@paulosacramento
Copy link
Contributor

Ok, now I get it. Thanks! I'm working on something about the subject of designing receipts for payments, based on the research I've done in Brazil. I will come back with more concrete suggestions as soon as I can.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Daily spending wallet Referring to the Daily spending wallet reference design section. Design Task is about designing something.
Projects
None yet
Development

No branches or pull requests

2 participants