Would sharing r_preimage be a security risk? #7425
-
I'm trying to learn more about the implications of the fields
From the Making Payments page:
So, let's say I create an invoice and somehow leak the Could someone use the Going further: Would sharing any of the fields from the lnrpc.Invoice expose me to this kind of risk? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Hi @icebaker, Yes, sharing With regards to other parts of the Invoice - none of the other parts are as big of a risk per-say since you are in any case putting most of those fields in an invoice that you will share with the person trying to pay you. But you dont necessarily want to share a single invoice with the world since something like |
Beta Was this translation helpful? Give feedback.
-
Hi @ellemouton, thanks for replying! This is very helpful information. So, for Trying to expand a bit to understand the If I expose the Example: Suppose I sell apples. I generate an invoice for an apple and leak the So, my reasoning: a) The risk is not being able to prove that someone didn't pay for the invoice, as they have the b) If I generate a random invoice and leak the data, the worse that could happen is someone claiming a payment. As I don't care about the invoice, and I won't receive any value, and the person won't receive anything as well, that's nothing to be concerned about here. c) The Does my reasoning make sense? |
Beta Was this translation helpful? Give feedback.
Hi @icebaker,
Yes, sharing
r_preimage
is not a good idea. In LN world, being able to show an invoice (with the hash) along with the pre-image (which hashes to that hash) is taken as proof-of-payment.With regards to other parts of the Invoice - none of the other parts are as big of a risk per-say since you are in any case putting most of those fields in an invoice that you will share with the person trying to pay you. But you dont necessarily want to share a single invoice with the world since something like
payment_addr
should really only ever be seen by the person trying to pay you. Further more, if you have some unannounced ("private") channels, then those will be in the invoice hop-hi…