Bitcoin Forum
October 31, 2024, 07:57:08 PM *
News: Bitcoin Pumpkin Carving Contest
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Import a Bitcoin Core private key into Electrum wallet that supports Lightning?  (Read 71 times)
Geremia (OP)
Sr. Member
****
Offline Offline

Activity: 506
Merit: 253


View Profile WWW
December 16, 2023, 06:35:20 PM
 #1

Why can't I import a Bitcoin Core private key into an Electrum wallet that supports Lightning?
Running importprivkey in the Electrum console, I get:
Quote
Error: This type of wallet cannot import private keys. Try to create a new wallet with that key.
When I create a new Electrum wallet with the private keys, why is Lightning disabled for that wallet?

BTC tip jar | my BTC wiki, BTC StackExchange | Tox ID: 65C3E8810738AD9D175234808FCB317A1103632903436203D45411AE97C03F54C34861AB6663
Join Kraken. | The best, free book on Bitcoin: Mastering Bitcoin
Nos cum prole pia benedicat Virgo Maria.
Charles-Tim
Legendary
*
Offline Offline

Activity: 1722
Merit: 5190


Leading Crypto Sports Betting & Casino Platform


View Profile
December 16, 2023, 06:49:22 PM
 #2

You can generate a seed phrase, keys and addresses on Electrum and send your coins that you want to use to open a channel there. If you think the fee is too expensive, use ViaBTC free accelerator. If you can not use ViaBTC accelerator, you can let us know your txid. Make sure the transaction size is not more than 500 byte (not 500 vbytes).

..Stake.com..   ▄████████████████████████████████████▄
   ██ ▄▄▄▄▄▄▄▄▄▄            ▄▄▄▄▄▄▄▄▄▄ ██  ▄████▄
   ██ ▀▀▀▀▀▀▀▀▀▀ ██████████ ▀▀▀▀▀▀▀▀▀▀ ██  ██████
   ██ ██████████ ██      ██ ██████████ ██   ▀██▀
   ██ ██      ██ ██████  ██ ██      ██ ██    ██
   ██ ██████  ██ █████  ███ ██████  ██ ████▄ ██
   ██ █████  ███ ████  ████ █████  ███ ████████
   ██ ████  ████ ██████████ ████  ████ ████▀
   ██ ██████████ ▄▄▄▄▄▄▄▄▄▄ ██████████ ██
   ██            ▀▀▀▀▀▀▀▀▀▀            ██ 
   ▀█████████▀ ▄████████████▄ ▀█████████▀
  ▄▄▄▄▄▄▄▄▄▄▄▄███  ██  ██  ███▄▄▄▄▄▄▄▄▄▄▄▄
 ██████████████████████████████████████████
▄▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▄
█  ▄▀▄             █▀▀█▀▄▄
█  █▀█             █  ▐  ▐▌
█       ▄██▄       █  ▌  █
█     ▄██████▄     █  ▌ ▐▌
█    ██████████    █ ▐  █
█   ▐██████████▌   █ ▐ ▐▌
█    ▀▀██████▀▀    █ ▌ █
█     ▄▄▄██▄▄▄     █ ▌▐▌
█                  █▐ █
█                  █▐▐▌
█                  █▐█
▀▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▀█
▄▄█████████▄▄
▄██▀▀▀▀█████▀▀▀▀██▄
▄█▀       ▐█▌       ▀█▄
██         ▐█▌         ██
████▄     ▄█████▄     ▄████
████████▄███████████▄████████
███▀    █████████████    ▀███
██       ███████████       ██
▀█▄       █████████       ▄█▀
▀█▄    ▄██▀▀▀▀▀▀▀██▄  ▄▄▄█▀
▀███████         ███████▀
▀█████▄       ▄█████▀
▀▀▀███▄▄▄███▀▀▀
..PLAY NOW..
nc50lc
Legendary
*
Offline Offline

Activity: 2590
Merit: 6309


Self-proclaimed Genius


View Profile
December 17, 2023, 07:21:15 AM
Merited by ABCbits (1)
 #3

Why can't I import a Bitcoin Core private key into an Electrum wallet that supports Lightning?
Running importprivkey in the Electrum console, I get:
Quote
Error: This type of wallet cannot import private keys. Try to create a new wallet with that key.
It used to be possible in the older version but the devs decided to disallow it in v2.0.
Refer to this commit: https://github.com/spesmilo/electrum/commit/4ce699bf2570a4478c1f467f676c46e42f63f2b4

That's probably because it breaks the purpose of the seed phrase backup since the imported keys wont be recoverable from it.
And managing the HD derived keys and the imported keys was a mess.

█▀▀▀











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











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
tbct_mt2
Hero Member
*****
Offline Offline

Activity: 2450
Merit: 851



View Profile
December 20, 2023, 11:12:33 AM
 #4

Did you try to sweep your Bitcoin Core private key to Electrum wallet?

Sweeping your private keys into Electrum
Transferring coins from Bitcoin-Qt to Electrum

When you have your coins in Electrum, you will have to open your Lightning Network channel.
Electrum Lightning Network walkthrough

More topics on Lightning Network
[Table] All Lightning Network Threads In One Place

 
 RAZED  
███████▄▄▄████▄▄▄▄
████▄███████████████
██▄██████▀▀████▀▀█████▄
████
██████████████
▄████████▄████████████▄
████████▀███████████▄
██████████████▐█▄█▀████████
▀████████████▌▐█▀██████████
▀███████████▌▀████████████
█████████▄▄▄
█████▄▄██████
████████████████████████
█████▀█████████████████▀
██████████████
▄▄███████▄▄
▄███████████████
▄███████████████████▄
█████████████████████▄
▄███████████████████████▄
████████████████████████
█████████████████████████
██████████████████████
▀█████
█████████████████▀
▀█
████████████████████▀
▀█████
█████████████
▀███████████████▀
█████████
 
RAZED ORIGINALS
SLOTS & LIVE CASINO
SPORTSBOOK
|
 NO 
KYC
 
 RAZE THE LIMITS   PLAY NOW 
nc50lc
Legendary
*
Offline Offline

Activity: 2590
Merit: 6309


Self-proclaimed Genius


View Profile
December 20, 2023, 11:40:41 AM
 #5

I just found out that OP also posted this in Electrum's GitHub repo as a new issue which is closed without getting any sufficient answer.
Link: https://github.com/spesmilo/electrum/issues/8751

When I create a new Electrum wallet with the private keys, why is Lightning disabled for that wallet?
I'm uncertain on this answer so I only answered one question in my previous reply (CMIIAW):
Electrum's lightning wallet requires a master private key where the private keys to be used in your lightning transactions' HTLC (Hashed Timelock Contract).
It can't rely on imported keys since it'll eventually run out of available unused keys after few transactions and reusing those isn't an option because it's unsafe to reuse used keys in old HTLC.

█▀▀▀











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











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
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!