Bitcoin Forum
May 13, 2024, 05:16:44 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: How the disposable private keys are being shared in Lightning Network?  (Read 175 times)
rixtox (OP)
Newbie
*
Offline Offline

Activity: 1
Merit: 0


View Profile
February 14, 2018, 09:38:40 PM
 #1

From the Lightning Network paper:

Quote
... once an updated commitment transaction is agreed upon, the previous commitment transaction pair is revoked by sharing the private keys needed to redeem those encumbered outputs. Thus, A shares its (throwaway) private key, and B shares its throwaway private key. If A were to sign and broadcast a revoked commitment transaction, B could not only immediately spend its own output, but it has both A's key and its own to generate a transaction which can spend the output which normally go to A after a delay.

It's not clear to me how the throwaway private keys should be shared between the two parties. What if Alice had shared her key to Bob but Bob refused to disclose his? In that case Alice couldn't submit the earlier commitment since otherwise Bob can steal her time-locked funds. But Bob could still spend his previous commitment without worrying his funds being revoked by Alice.

Is it considered an unfair situation? And how the protocol address the problem?

1715620604
Hero Member
*
Offline Offline

Posts: 1715620604

View Profile Personal Message (Offline)

Ignore
1715620604
Reply with quote  #2

1715620604
Report to moderator
"If you don't want people to know you're a scumbag then don't be a scumbag." -- margaritahuyan
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715620604
Hero Member
*
Offline Offline

Posts: 1715620604

View Profile Personal Message (Offline)

Ignore
1715620604
Reply with quote  #2

1715620604
Report to moderator
1715620604
Hero Member
*
Offline Offline

Posts: 1715620604

View Profile Personal Message (Offline)

Ignore
1715620604
Reply with quote  #2

1715620604
Report to moderator
Random Seller
Newbie
*
Offline Offline

Activity: 42
Merit: 0


View Profile
February 15, 2018, 02:14:18 AM
 #2

From the Lightning Network paper:

Quote
... once an updated commitment transaction is agreed upon, the previous commitment transaction pair is revoked by sharing the private keys needed to redeem those encumbered outputs. Thus, A shares its (throwaway) private key, and B shares its throwaway private key. If A were to sign and broadcast a revoked commitment transaction, B could not only immediately spend its own output, but it has both A's key and its own to generate a transaction which can spend the output which normally go to A after a delay.

It's not clear to me how the throwaway private keys should be shared between the two parties. What if Alice had shared her key to Bob but Bob refused to disclose his? In that case Alice couldn't submit the earlier commitment since otherwise Bob can steal her time-locked funds. But Bob could still spend his previous commitment without worrying his funds being revoked by Alice.

Is it considered an unfair situation? And how the protocol address the problem?



What you are looking at is a situation where A is attempting to broadcast a revoked committed transaction.

In order to revoke a previous transaction A would need to send her per_commitment_secret to B. This allows B to generate a revocation_key if A attempts to broadcast that revoked committed transaction. And that would transfer the BTC to B.

B does not need to share his keys because this is an unfair situation. Where A is trying to cheat the system.



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!