Bitcoin Forum
April 27, 2024, 09:17:07 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 [2]  All
  Print  
Author Topic: Mastering the Lightning Network book  (Read 311 times)
darkv0rt3x (OP)
Hero Member
*****
Offline Offline

Activity: 1204
Merit: 657


I rather die on my feet than to live on my knees


View Profile
January 16, 2023, 12:00:22 AM
 #21

Well, with the help of someone, I was able to fix this shit and kinda move on. I even created a small PR in this book github repository.
Tomorrow I'll continue with this!

Bitcoin is energy. Bitcoin is freedom
I rather die on my feet than living on my knees!
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
darkv0rt3x (OP)
Hero Member
*****
Offline Offline

Activity: 1204
Merit: 657


I rather die on my feet than to live on my knees


View Profile
March 22, 2023, 10:55:16 PM
 #22

Back to reading the book.

I have a question in Chapter 7, Section Constructing the Funding Transaction.

They show the image of the way a Funding Transaction is created (conceptually) with a 2-of-2 multisig address.
Then, below the image, they say:
Quote from: Mastering LN
Alice does not broadcast this transaction because doing so would put her 140,000 satoshi at risk.

Actually, 2 questions:
1 - If this is a 2-of-2 multisig address, how could Alice broadcast it on her own?
2 - Even if shw can do that, in what sense whould her funds be at risk?

Bitcoin is energy. Bitcoin is freedom
I rather die on my feet than living on my knees!
ABCbits
Legendary
*
Offline Offline

Activity: 2856
Merit: 7407


Crypto Swap Exchange


View Profile
March 23, 2023, 12:05:03 PM
Merited by darkv0rt3x (1)
 #23

--snip--

Actually, 2 questions:
1 - If this is a 2-of-2 multisig address, how could Alice broadcast it on her own?
2 - Even if shw can do that, in what sense whould her funds be at risk?

You can find answer to these question if you continue reading chapter 7. I skimmed it and it looks like section "Cheating with Old Commitment Transactions" and "Cheating and Penalty in Practice" answer your question in detail. But the short answer is,
1. Alice simply broadcast TX which represent current or older state of LN channel.
2. After bob detect cheating attempt (by broadcast TX which represent older state of LN channel), Bob could broadcast penalty transaction where Bob take all coin on LN channel.

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
BlackHatCoiner
Legendary
*
Online Online

Activity: 1498
Merit: 7294


Farewell, Leo


View Profile
March 23, 2023, 04:33:39 PM
Merited by darkv0rt3x (1)
 #24

1 - If this is a 2-of-2 multisig address, how could Alice broadcast it on her own?
I think what the author means in that part is that Alice should not broadcast the funding transaction before she constructs the refunding transaction. The reason is that Alice must be sure she will get her money back, even non-cooperatively if needed.

2 - Even if shw can do that, in what sense whould her funds be at risk?
If you send funds to a 2-of-2 multi-sig, wherein you only possess 1 private key, then you might be unable to spend if your partner simply disappears. You need him to sign the refunding transaction, and then you can send the money knowing that even if he does not respond, you can refund the channel.

.
.HUGE.
▄██████████▄▄
▄█████████████████▄
▄█████████████████████▄
▄███████████████████████▄
▄█████████████████████████▄
███████▌██▌▐██▐██▐████▄███
████▐██▐████▌██▌██▌██▌██
█████▀███▀███▀▐██▐██▐█████

▀█████████████████████████▀

▀███████████████████████▀

▀█████████████████████▀

▀█████████████████▀

▀██████████▀▀
█▀▀▀▀











█▄▄▄▄
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
.
CASINSPORTSBOOK
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀▀█











▄▄▄▄█
darkv0rt3x (OP)
Hero Member
*****
Offline Offline

Activity: 1204
Merit: 657


I rather die on my feet than to live on my knees


View Profile
March 24, 2023, 08:16:58 PM
 #25

Actually, I didn't even thought thoroughly about the question I made.
In fact, and correct me if I'm wrong, if it happens that one of the peers broadcast a old commitement transaction into the blockchain, this transaction is already constructed and signed by both parties, right?
My question was non-sense because I was asking how could Alice broadcast (I was thinking about constructing it and signing it rather than just broadcasting it) the transaction thinking she would be using only her private key when, this transaction is already signed by both but not yet broadcast!

Bitcoin is energy. Bitcoin is freedom
I rather die on my feet than living on my knees!
Pages: « 1 [2]  All
  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!