Bitcoin Forum
June 23, 2024, 03:24:33 PM *
News: Voting for pizza day contest
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Present phenomena in Lightning Network  (Read 119 times)
user512 (OP)
Newbie
*
Offline Offline

Activity: 12
Merit: 6


View Profile
June 03, 2019, 10:44:34 AM
 #1

Hello,
I see in Lightning Network some small issue which besides defends the transfer of big amount of BTC. I use the example with café. Have you noticed that in case of sending secret, two transactions are actually valid and two would pass? The third transaction from the front is invalidated by the exchange of the secret, but not the two most recent before the exchange of the secret. That is why the waitress will bring the third coffee only when the secret is exchanged for the second transaction (the customer might broadcast older transaction without penalty at now). The process is always one "paying" as if behind. But before that, there are two transactions - the two latest. In the exchange of the second transaction commitment, the third transaction is already signed and the waitress can broadcast it and have her coffee paid for, without waiting for a secret.

Can this small problem be solved by atomicity - namely, between signing a second commitment, exchanging secret from first commitment and serving a second coffee (these actions must be totally contemporary (atomic) for maximum safety and how?

I speak about big amount of BTC at the beginning because if you are transferring more bitcoins, then the receiver is paid in advance and that is not safety.
achow101
Moderator
Legendary
*
expert
Offline Offline

Activity: 3430
Merit: 6720


Just writing some code


View Profile WWW
June 03, 2019, 01:19:35 PM
Merited by Foxpup (3), mocacinno (1), ABCbits (1)
 #2

If you intend on paying someone, why would it be a problem if they took the payment? If the waitress broadcasts the commitment you just sent but you hadn't received the secret yet, then you aren't losing anything. You already paid her, so what's the problem?

In fact, the waitress would be incentivized to respond with the revocation secret and complete the commitment update before broadcasting the transaction because there is the risk that if she broadcast before the customer's commitment is revoked that the customer can broadcast his older commitment where she was paid less. There is the risk that his transaction is confirmed before hers is so she could lose money. The waitress is fine with sending the revocation key and the commitment update for the customer because she doesn't to use her old commitment because that would mean she gets less money.

Of course there is the issue of the receiver taking payment and failing to deliver the product or service, but that's not a problem unique to the Lightning Network or to Bitcoin at all. That's why things like escrows are used - to ensure that both parties receive their agreed upon payment or good/service.

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!