Bitcoin Forum
May 14, 2024, 05:43:35 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Importing Private Keys  (Read 555 times)
pitham1 (OP)
Legendary
*
Offline Offline

Activity: 1232
Merit: 1000


View Profile
March 16, 2017, 12:17:54 PM
 #1

Hi,

I have created a new Electrum wallet by importing private keys from another client.
A few of the addresses are highlighted with a bright red colour in the background.
Is there anything I should know before using these addresses?

mocacinno
Legendary
*
Online Online

Activity: 3388
Merit: 4923


https://merel.mobi => buy facemasks with BTC/LTC


View Profile WWW
March 16, 2017, 12:26:34 PM
 #2

Hi,

I have created a new Electrum wallet by importing private keys from another client.
A few of the addresses are highlighted with a bright red colour in the background.
Is there anything I should know before using these addresses?


Normally, a red color means that the addresses were created beyond the gap limit... In your case, there is no gap limit because you imported private keys (so you don't have a deterministic wallet).
I guess you could call it a "bug", altough i doubt it will do any harm, it's a feature for HD wallets that still gets triggered on a non-HD wallet.

I suppose the red background color will disappear once a couple of those adresses got inputs, and electrum deems the red colored addresses to be within the predefined gap limit.

But, anyways, bug or no bug, since you imported the private keys, there isn't much that could go wrong (or am i missing something here). Worst case scenario, you could always download core and import the same private keys there (altough i doubt it would ever come to that).

BTW: you could try to edit the gap limit to a number higher than the total amount of imported addresses, if you do this, the red background *SHOULD* dissapear.

EDIT => to increase the gap limit in 2.8.0
  • open electrum
  • go to the console
  • wallet.storage.put('gap_limit',1000)
  • close electrum
  • restart electrum

█▀▀▀











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











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
pitham1 (OP)
Legendary
*
Offline Offline

Activity: 1232
Merit: 1000


View Profile
March 16, 2017, 03:11:06 PM
 #3

Hi,

I have created a new Electrum wallet by importing private keys from another client.
A few of the addresses are highlighted with a bright red colour in the background.
Is there anything I should know before using these addresses?


Normally, a red color means that the addresses were created beyond the gap limit... In your case, there is no gap limit because you imported private keys (so you don't have a deterministic wallet).
I guess you could call it a "bug", altough i doubt it will do any harm, it's a feature for HD wallets that still gets triggered on a non-HD wallet.

I suppose the red background color will disappear once a couple of those adresses got inputs, and electrum deems the red colored addresses to be within the predefined gap limit.

But, anyways, bug or no bug, since you imported the private keys, there isn't much that could go wrong (or am i missing something here). Worst case scenario, you could always download core and import the same private keys there (altough i doubt it would ever come to that).

BTW: you could try to edit the gap limit to a number higher than the total amount of imported addresses, if you do this, the red background *SHOULD* dissapear.

EDIT => to increase the gap limit in 2.8.0
  • open electrum
  • go to the console
  • wallet.storage.put('gap_limit',1000)
  • close electrum
  • restart electrum

Thanks! I was just concerned because I saw the red colour for the first time.
Wanted to make sure that I didn't do anything wrong in the import process. Seems like everything is okay.

Coin-Keeper
Hero Member
*****
Offline Offline

Activity: 758
Merit: 606



View Profile
March 16, 2017, 08:20:23 PM
 #4

Hi,

I have created a new Electrum wallet by importing private keys from another client.
A few of the addresses are highlighted with a bright red colour in the background.
Is there anything I should know before using these addresses?


Normally, a red color means that the addresses were created beyond the gap limit... In your case, there is no gap limit because you imported private keys (so you don't have a deterministic wallet).
I guess you could call it a "bug", altough i doubt it will do any harm, it's a feature for HD wallets that still gets triggered on a non-HD wallet.

I suppose the red background color will disappear once a couple of those adresses got inputs, and electrum deems the red colored addresses to be within the predefined gap limit.

But, anyways, bug or no bug, since you imported the private keys, there isn't much that could go wrong (or am i missing something here). Worst case scenario, you could always download core and import the same private keys there (altough i doubt it would ever come to that).

BTW: you could try to edit the gap limit to a number higher than the total amount of imported addresses, if you do this, the red background *SHOULD* dissapear.

EDIT => to increase the gap limit in 2.8.0
  • open electrum
  • go to the console
  • wallet.storage.put('gap_limit',1000)
  • close electrum
  • restart electrum

Thanks! I was just concerned because I saw the red colour for the first time.
Wanted to make sure that I didn't do anything wrong in the import process. Seems like everything is okay.

I have never seen that either.  Once you run a few transactions through the address, and if the color changes to normal, will you please come back and post it here so we know for sure?  I love this forum.  Every single day I come here to read and learn.  When I find a thread like this I watch it.  Thanks in advance.

BTC: 1PYSBbuKM3kW19xe9TXJQfq64rPhd8XorF
Staked and Verified: https://bitcointalk.org/index.php?topic=996318.msg17102755#msg17102755
torusJKL
Hero Member
*****
Offline Offline

Activity: 619
Merit: 500


View Profile
March 19, 2017, 01:16:50 PM
 #5

I would recommend that you move the bitcoins from these imported addresses to one of the addresses Electrum has created.
This way you can toss the private key of those away and will only need the seed to recover you bitcoins in the future.

If you find my post useful send some Bitcoin: 167XM1Za8aG9CdbYuHFMpL2kvPsw6uC8da
Bitrated || bitcoin-otc || Moon Bitcoin Faucet
Coding Enthusiast
Legendary
*
Offline Offline

Activity: 1039
Merit: 2783


Bitcoin and C♯ Enthusiast


View Profile WWW
March 19, 2017, 03:18:01 PM
 #6

Please update us in the future in case you found out why this was happening or in case it was fixed.
Thanks.

Projects List+Suggestion box
Donate: 1Q9s or bc1q
|
|
|
FinderOuter(0.19.1)Ann-git
Denovo(0.7.0)Ann-git
Bitcoin.Net(0.26.0)Ann-git
|
|
|
BitcoinTransactionTool(0.11.0)Ann-git
WatchOnlyBitcoinWallet(3.2.1)Ann-git
SharpPusher(0.12.0)Ann-git
Quickseller
Copper Member
Legendary
*
Offline Offline

Activity: 2870
Merit: 2301


View Profile
March 19, 2017, 06:55:22 PM
 #7

IIRC, an address being highlighted in red means that BTC ended up in a change address that is expected to receive BTC after the next change address that is expected to receive change from a transaction spent from your wallet.

This could be an indication that a transaction that you sent (that includes a change address) failed to confirm and has dropped from the electrum server's mempool that you are using for whatever reason. It could also be an indication that you directed someone to send BTC to a change address in your wallet that is not the next change address in line to be used.
pitham1 (OP)
Legendary
*
Offline Offline

Activity: 1232
Merit: 1000


View Profile
March 26, 2017, 04:24:43 AM
 #8

I have never seen that either.  Once you run a few transactions through the address, and if the color changes to normal, will you please come back and post it here so we know for sure?  I love this forum.  Every single day I come here to read and learn.  When I find a thread like this I watch it.  Thanks in advance.

Please update us in the future in case you found out why this was happening or in case it was fixed.
Thanks.

The reason given by mocacinno was spot on.
As soon as my wallet had a few transactions, the red colour disappeared.

ThomasV
Moderator
Legendary
*
Offline Offline

Activity: 1896
Merit: 1353



View Profile WWW
March 26, 2017, 04:23:39 PM
 #9

Hi,

I have created a new Electrum wallet by importing private keys from another client.
A few of the addresses are highlighted with a bright red colour in the background.
Is there anything I should know before using these addresses?


which version of Electrum are you using?
could you please post a screenshot of your addresses tab?
(blur the addresses if you want)

Electrum: the convenience of a web wallet, without the risks
Coin-Keeper
Hero Member
*****
Offline Offline

Activity: 758
Merit: 606



View Profile
March 27, 2017, 08:24:48 PM
 #10

I have never seen that either.  Once you run a few transactions through the address, and if the color changes to normal, will you please come back and post it here so we know for sure?  I love this forum.  Every single day I come here to read and learn.  When I find a thread like this I watch it.  Thanks in advance.

Please update us in the future in case you found out why this was happening or in case it was fixed.
Thanks.

The reason given by mocacinno was spot on.
As soon as my wallet had a few transactions, the red colour disappeared.


Thanks for posting back on this.  Hope you noticed Thomas' post asking for some more detail from your wallet.  Please keep this going if it sheds any light on this for the rest of us.

I am always a little afraid to import private keys.  Its seems like it causes "unique" issues.  Still learning.

BTC: 1PYSBbuKM3kW19xe9TXJQfq64rPhd8XorF
Staked and Verified: https://bitcointalk.org/index.php?topic=996318.msg17102755#msg17102755
mocacinno
Legendary
*
Online Online

Activity: 3388
Merit: 4923


https://merel.mobi => buy facemasks with BTC/LTC


View Profile WWW
March 28, 2017, 06:03:22 AM
 #11

Hi,

I have created a new Electrum wallet by importing private keys from another client.
A few of the addresses are highlighted with a bright red colour in the background.
Is there anything I should know before using these addresses?


which version of Electrum are you using?
could you please post a screenshot of your addresses tab?
(blur the addresses if you want)

I can verify OP's problem, i recreated it by :
  • running vanitygen => vanitygen.exe -o mo.txt -k 1mo
  • Cleaning up mo.txt so it only included the private keys (about ~900 keys were created)
  • opening electrum 2.8.0, file => new/restore => delme => standard wallet => use public or private keys => paste 102 keys from my cleaned text file (i set my gap limit at 20)
  • output of the addresses-tab in screenshot




I'm going out on a limb here, but it is my assumption that electrum does not diversifys between HD wallets created from seed and non-HD wallets created by importing private keys when it comes to marking addresses that are beyond the gap limit.
It might be a little bit annoying, but i don't think there's any harm.

BTW: ThomasV: if you're unable to replicate the situation, i would certainly be willing to zip up the wallet i created and send it to you in PM or over email... It's just some random generated vanity addresses with 0 inputs, so i wouldn't mind sharing those with you...

█▀▀▀











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