Bitcoin Forum

Bitcoin => Electrum => Topic started by: coldice on August 24, 2017, 10:46:11 AM



Title: [SOLVED] Electrum importing wrong btc address for my private key
Post by: coldice on August 24, 2017, 10:46:11 AM
I generated custom BTC address via vanitygen. It gave me private key and btc address.
I imported that private key to blockchain.info and imported correct btc address. Now, I want to import that private key to electrum and when I do so it imports some other BTC address. Can someone tell what's the problem here?

Solution:
This problem got solved by visiting https://www.bitaddress.org/
And click on wallet details and enter the private you have then click on view details and it will solve your issue.


Read the replies below to know the reason.


Title: Re: Electrum importing wrong btc address for my private key
Post by: BitcoinReseller on August 24, 2017, 10:53:02 AM
if you 're using Electron to collect your bitcoin cash this could help you :
https://bitcointalk.org/index.php?topic=2078292.0 (https://bitcointalk.org/index.php?topic=2078292.0)


Title: Re: Electrum importing wrong btc address for my private key
Post by: coldice on August 24, 2017, 10:57:58 AM
if you 're using Electron to collect your bitcoin cash this could help you :
https://bitcointalk.org/index.php?topic=2078292.0 (https://bitcointalk.org/index.php?topic=2078292.0)

It's not bitcoin cash. It's simply Bitcoin.


Title: Re: Electrum importing wrong btc address for my private key
Post by: eXpl0sive on August 24, 2017, 11:02:59 AM
That's weird.
Two different private keys can generate the same public address, but first time I'm seeing a private key generating two different public addresses.

Have you tried any other wallet like Core or Multibit to see how each wallet behaves?


Title: Re: Electrum importing wrong btc address for my private key
Post by: HCP on August 24, 2017, 11:15:11 AM
Was the private key in WIF format and does it start with a "5", a "K" or an "L"?

I vaguely remember reading that importing into b.info did weird things where it was automatically converting uncompressed and compressed addresses for imported keys. If you put your private key into an offline version of BitAddress.org (wallet details tab) do you see both the address from b.info AND the address from Electrum?


Title: Re: Electrum importing wrong btc address for my private key
Post by: erre on August 24, 2017, 11:18:09 AM
I generated custom BTC address via vanitygen. It gave me private key and btc address.
I imported that private key to blockchain.info and imported correct btc address. Now, I want to import that private key to electrum and when I do so it imports some other BTC address. Can someone tell what's the problem here?

That's because compressed/uncompressed private key. Insert your privkey in bitaddress.org (use it offline, click on "details"), and import both


Title: Re: Electrum importing wrong btc address for my private key
Post by: ranochigo on August 24, 2017, 11:18:28 AM
That's weird.
Two different private keys can generate the same public address, but first time I'm seeing a private key generating two different public addresses.
No. It's impossible to have a single address being derived from two private keys. It is however, possible to have 2 keys derived from the same private key.

How did you generate the vanity address? If you generated it using an online website without using split-key generation, DO NOT use it or send anything to it.

Can you go to bitaddress.org and go to Wallet Details. Key in your private key and see which private key corresponds to your address. Its best to do this offline.


Title: Re: Electrum importing wrong btc address for my private key
Post by: coldice on August 24, 2017, 11:51:35 AM
That's weird.
Two different private keys can generate the same public address, but first time I'm seeing a private key generating two different public addresses.
No. It's impossible to have a single address being derived from two private keys. It is however, possible to have 2 keys derived from the same private key.

How did you generate the vanity address? If you generated it using an online website without using split-key generation, DO NOT use it or send anything to it.

Can you go to bitaddress.org and go to Wallet Details. Key in your private key and see which private key corresponds to your address. Its best to do this offline.

I used vanitygen windows based to generate address.

This problem got solved by visiting BitAddress.org
It gave me compressed & uncompressed address + private key.


Title: Re: Electrum importing wrong btc address for my private key
Post by: eXpl0sive on August 24, 2017, 11:51:47 AM
That's weird.
Two different private keys can generate the same public address, but first time I'm seeing a private key generating two different public addresses.
No. It's impossible to have a single address being derived from two private keys. It is however, possible to have 2 keys derived from the same private key.

I was reading about this the other day:
https://bitcoin.stackexchange.com/questions/25069/can-two-private-keys-generate-the-same-public-bitcoin-address

Or am I missing something? Noob question.


Title: Re: Electrum importing wrong btc address for my private key
Post by: coldice on August 24, 2017, 11:51:51 AM
This problem got solved by visiting BitAddress.org
It gave me compressed & uncompressed address + private key.

Thanks for your help