Replies: 2 comments 1 reply
-
Hello @basharov , The user's node generated an invoice to receive payment from your node. In order to claim the funds that you are attempting to send, the recipient node must reveal (send) a "pre-image" to your node. By revealing the pre-image, the recipient proves that they have received the payment. The pre-image can be used to verify that the hash lock in the payment matches the pre-image hash in the invoice. This serves as cryptographic proof that the payment was successfully made, and the recipient can trust that they have received the funds. If the payment was successful then your node and the receiving node should both have access to the invoice and the pre-image. If you're node can reveal the pre-image then you can prove to the receiver that the payment was successful. (A successful payment means that control over some funds were handed over to the receiving node.) I hope that's clear, let me know if it isn't. |
Beta Was this translation helpful? Give feedback.
-
Hello, Thank You. |
Beta Was this translation helpful? Give feedback.
-
I am working on a side project to allow users to receive some payments from it. When a user clicks a button to withdraw to a lightning address, my webapp makes a request to the host of that lightning address and makes a payment.
I can see the transaction has finished and everything is fine.
But I face situations when people say they didn't receive anything even though the logs show that it should have been received and all settled.
I know it can be some shady users actually receiving funds but claiming they didn't to try to get more from me. On the other hand, it can be that users have some technical issues or lack of experience using lightning and they really didn't receive anything.
So, I cannot say with confidence when it's a case with fraud and when it's really some issues on their side.
Is there a way to protect and to know if users try to cheat on me or if they need help?
Beta Was this translation helpful? Give feedback.
All reactions