Bitcoin Forum
May 03, 2024, 03:20:11 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Can lightning channel be recovered from seed phrase?  (Read 76 times)
FibonacciTrader (OP)
Newbie
*
Offline Offline

Activity: 8
Merit: 6


View Profile
August 13, 2023, 01:45:54 AM
 #1

If a user has an open Lightning channel, their Electrum wallet file gets destroyed, and they restore their Electrum wallet from seed phrase, will the Lightning channel be recoverable or will it be lost?
1714749611
Hero Member
*
Offline Offline

Posts: 1714749611

View Profile Personal Message (Offline)

Ignore
1714749611
Reply with quote  #2

1714749611
Report to moderator
The forum strives to allow free discussion of any ideas. All policies are built around this principle. This doesn't mean you can post garbage, though: posts should actually contain ideas, and these ideas should be argued reasonably.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
Shishir99
Sr. Member
****
Offline Offline

Activity: 644
Merit: 379


View Profile WWW
August 13, 2023, 01:59:53 AM
Last edit: August 13, 2023, 02:20:02 AM by Shishir99
 #2

If you restore the Electrum wallet from the seed phrase, the Lightning channel should be recoverable. Because the seed phrase is used to bring out all the private keys and addresses associated with your wallet including those which was used for Lightning channels.

If you restore your Electrum wallet, the wallet will regenerate all the necessary private keys and addresses including those which was used for the Lightning channels. Your Lightning channel's state is stored on the blockchain, and the private keys associated with your channels are executed from your seed phrase. Your existing Lightning channel information such as channel balances and channel state should be restored with the rest of your wallet.
FibonacciTrader (OP)
Newbie
*
Offline Offline

Activity: 8
Merit: 6


View Profile
August 13, 2023, 02:34:04 AM
 #3

Your Lightning channel's state is stored on the blockchain, and the private keys associated with your channels are executed from your seed phrase. Your existing Lightning channel information such as channel balances and channel state should be restored with the rest of your wallet.

I appreciate your reply. My basic understanding is that the amount contributed to a Lightning channel is on-chain, but the channel state is stored offline (channel peer-to-peer) to avoid the on-chain transaction fees. Given that, how does Electrum know how to find the offline channel state based on the seed phrase alone?
Shishir99
Sr. Member
****
Offline Offline

Activity: 644
Merit: 379


View Profile WWW
August 13, 2023, 04:11:06 AM
 #4

Your Lightning channel's state is stored on the blockchain, and the private keys associated with your channels are executed from your seed phrase. Your existing Lightning channel information such as channel balances and channel state should be restored with the rest of your wallet.

I appreciate your reply. My basic understanding is that the amount contributed to a Lightning channel is on-chain, but the channel state is stored offline (channel peer-to-peer) to avoid the on-chain transaction fees. Given that, how does Electrum know how to find the offline channel state based on the seed phrase alone?

Seems like I misunderstood. But I  guess there is some confusion in your understanding as well. The lightning network is 2nd layer scaling solution of a blockchain. The channels are funded with on-chain transactions. But when you participate in a lightning network, those transactions, balance, and channel states are off-chain. It's a 2nd layer blockchain. The lightning network transactions are not on the main blockchain.

The lightning channel state is stored locally within your Electrum wallet software. So I guess Electrum doesn't find an offline channel state based on the seed phrase alone. Wait for the expert guys. I have to learn more about these things as well!
nc50lc
Legendary
*
Offline Offline

Activity: 2408
Merit: 5583


Self-proclaimed Genius


View Profile
August 13, 2023, 04:44:09 AM
Merited by Abdussamad (2), igor72 (1)
 #5

If a user has an open Lightning channel, their Electrum wallet file gets destroyed, and they restore their Electrum wallet from seed phrase, will the Lightning channel be recoverable or will it be lost?
It depends, it's only possible if you've enabled the setting "Create recoverable channels" when you created the channel.
The setting can be found in the small setting icon on the upper-right hand of Open channel window.
It can't be enabled (grayed-out) if you're using hardware wallet, using BIP39 seed or have a nodeID before the feature implementation (v4.1.0):


In case you want to check if your channels are recoverable from seed, the channel's icon on the left side of channels tab shouldn't have a "crossed-out blue cloud" icon.
Another indication is by checking the "open channel" transaction if it has a "SCRIPT" output containing OP_RETURN encrypted data from your lightning nodeID.

However, just like a manual channel backup, it's only a "static backup" which can't be used to spend or receive,
the only thing you can do to it is to request to force-close the channel to retrieve the funds.

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

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

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

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

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

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











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











▄▄▄▄█
FibonacciTrader (OP)
Newbie
*
Offline Offline

Activity: 8
Merit: 6


View Profile
August 13, 2023, 08:29:25 PM
 #6

The setting can be found in the small setting icon on the upper-right hand of Open channel window.
It can't be enabled (grayed-out) if you're using hardware wallet, using BIP39 seed or have a nodeID before the feature implementation (v4.1.0):

Thank you, @nc50lc ! I was able to export a QR code backup by right-clicking on the channel -> 'Export backup'
https://talkimg.com/images/2023/08/13/GDibd.png
Electrum says it can be recovered by scanning the QR code from the Electrum mobile app.

Note that I use a BIP39 seed and was still able to create the Lightning channel backup.

Cheers.
nc50lc
Legendary
*
Offline Offline

Activity: 2408
Merit: 5583


Self-proclaimed Genius


View Profile
August 14, 2023, 03:16:04 AM
 #7

Note that I use a BIP39 seed and was still able to create the Lightning channel backup.
The limitation is only applicable to the automatic channel backup (recoverable channels) that can be recovered via seed phrase.
Manual backup works in BIP39 seed or hardware wallet.

So as originally asked, your channels wont be recovered from seed phrase.

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

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

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

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

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

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











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











▄▄▄▄█
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!