Bitcoin Forum
May 06, 2024, 11:07:30 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Why do you need a channel backup and mnemonic code?  (Read 80 times)
LightningResponse (OP)
Newbie
*
Offline Offline

Activity: 3
Merit: 12


View Profile
July 20, 2021, 08:12:04 PM
Merited by HCP (5), Welsh (4), Saidasun (2), ABCbits (1)
 #1

I have been researching into creating my own lightening node and I have a little question relating to the mnemonic code and the channel backup. Why are both of these needed? With Bitcoin you only need to have the mnemonic code to recover your funds correct? Why does lightening need you to backup the channel as well?

1714993650
Hero Member
*
Offline Offline

Posts: 1714993650

View Profile Personal Message (Offline)

Ignore
1714993650
Reply with quote  #2

1714993650
Report to moderator
1714993650
Hero Member
*
Offline Offline

Posts: 1714993650

View Profile Personal Message (Offline)

Ignore
1714993650
Reply with quote  #2

1714993650
Report to moderator
1714993650
Hero Member
*
Offline Offline

Posts: 1714993650

View Profile Personal Message (Offline)

Ignore
1714993650
Reply with quote  #2

1714993650
Report to moderator
Bitcoin addresses contain a checksum, so it is very unlikely that mistyping an address will cause you to lose money.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714993650
Hero Member
*
Offline Offline

Posts: 1714993650

View Profile Personal Message (Offline)

Ignore
1714993650
Reply with quote  #2

1714993650
Report to moderator
1714993650
Hero Member
*
Offline Offline

Posts: 1714993650

View Profile Personal Message (Offline)

Ignore
1714993650
Reply with quote  #2

1714993650
Report to moderator
Rath_
aka BitCryptex
Legendary
*
Offline Offline

Activity: 1876
Merit: 3131



View Profile
July 20, 2021, 09:07:04 PM
Merited by Welsh (8), LoyceV (4), ABCbits (3), Pmalek (2), Saidasun (2), LightningResponse (2), nc50lc (1), Chikito (1)
 #2

Why does lightening need you to backup the channel as well?

Simply put, Lightning Network nodes constantly sign new commitment transactions, which record the current balance of a channel, whenever the channel is updated. Both parties exchange revocation keys for the latest commitment transaction while signing a new one. It's technically impossible to derive your partner's revocation keys and any past commitment transactions (since they have never been broadcast) from your mnemonic phrase.

LND backup file lets you reconnect to your peers and ask them to close your channel. Note that you won't be able to verify if the other party published the latest commitment transaction. You won't be able to broadcast a penalty transaction to defend yourself. Also, if the other party is offline or refuses your request (despite signalling data-loss protection support), you won't be able to recover your funds.

c-lightning has a backup plugin which maintains a full channel database backup to a remote directory. You won't have to close any of your channels if you restore it.
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!