Author

Topic: Electrum doesn't restore right wallet address (Read 261 times)

legendary
Activity: 3290
Merit: 16489
Thick-Skinned Gang Leader and Golden Feather 2021
And he did...
It makes sense to be on the Electrum board, but I've seen most questions about using a SegWit address from Bitcoin core (without syncing) on this board.
It's in my bookmarks to refer to now. Electrum should work on telling Google about this feature, I couldn't find it.
legendary
Activity: 2758
Merit: 6830
If it's a Bech32 address then just add p2wpkh: in front of the private key.
Eg p2wpkh:KPrivateKey
Can you make a topic for this on this board? Many people will need this.
Google couldn't tell me this, and it's great information for segwit adoption.

I'd make the topic myself, but I don't want to steal your thunder.
And he did... Here it is for anyone who cares:

[GUIDE] Importing Electrum Segwit Private Key Into Bitcoin Core (And Vice Versa)

Edit: just noticed that you are Loyce and already merited his thread. lol
hero member
Activity: 1659
Merit: 687
LoyceV on the road. Or couch.
If it's a Bech32 address then just add p2wpkh: in front of the private key.
Eg p2wpkh:KPrivateKey
Can you make a topic for this on this board? Many people will need this.
Google couldn't tell me this, and it's great information for segwit adoption.

I'd make the topic myself, but I don't want to steal your thunder.
sr. member
Activity: 322
Merit: 363
39twH4PSYgDSzU7sLnRoDfthR6gWYrrPoD
How? can you share it with us if how did you import the private key from bitcoin  core segwit to electrum?
It's in my post that LoyceV quoted above:
In the field where you enter the private key, enter p2wpkh-p2sh: in front of the private key.
For example, do this:
Code:
p2wpkh-p2sh:5BlahBlah
Replace "5blahblah" with your private key.
It should import the correct address
PS
If it's a Bech32 address then just add p2wpkh: in front of the private key.
Eg p2wpkh:KPrivateKey
legendary
Activity: 3472
Merit: 3217
Playbet.io - Crypto Casino and Sportsbook
AFAIK there is currently no way to import private keys for segwit addresses from Bitcoin Core to Electrum.
I read (and bookmarked) this 2 days ago:
In the field where you enter the private key, enter p2wpkh-p2sh: in front of the private key.
For example, do this:
Code:
p2wpkh-p2sh:5BlahBlah
Replace "5blahblah" with your private key.
It should import the correct address

I haven't tested it yet, but if it works, I want to merit him.

The only thing that I know to get your bitcoin out from bitcoin core segwit wallet is via sweeping, but it needs a 3rd party tool

You can find the tool from this site https://segwitaddress.org/

However, I don't know if it's safe or not, but this site already been discussed here https://bitcointalk.org/index.php?topic=2767422.25

Yay! Bingo! It works in Electrum

You saved my ass from weeks of waiting Cheesy

Thanks guys
How? can you share it with us if how did you import the private key from bitcoin  core segwit to electrum?

HCP
legendary
Activity: 2086
Merit: 4363
I read (and bookmarked) this 2 days ago:
In the field where you enter the private key, enter p2wpkh-p2sh: in front of the private key.
For example, do this:
Code:
p2wpkh-p2sh:5BlahBlah
Replace "5blahblah" with your private key.
It should import the correct address

I haven't tested it yet, but if it works, I want to merit him.
I have tested this method... and can confirm that it indeed works perfectly. You just need to use the "p2wpkh-p2sh:" prefix on your private key and Electrum will generate the p2wpkh-p2sh SegWit address. Smiley
newbie
Activity: 2
Merit: 0
Yay! Bingo! It works in Electrum

You saved my ass from weeks of waiting Cheesy

Thanks guys
legendary
Activity: 3290
Merit: 16489
Thick-Skinned Gang Leader and Golden Feather 2021
AFAIK there is currently no way to import private keys for segwit addresses from Bitcoin Core to Electrum.
I read (and bookmarked) this 2 days ago:
In the field where you enter the private key, enter p2wpkh-p2sh: in front of the private key.
For example, do this:
Code:
p2wpkh-p2sh:5BlahBlah
Replace "5blahblah" with your private key.
It should import the correct address

I haven't tested it yet, but if it works, I want to merit him.
staff
Activity: 3458
Merit: 6793
Just writing some code
Your address for Bitcoin Core is a segwit address. However there is currently no standard way for exported private keys to indicate that the address to create is a segwit address. When you import that into any wallet, it will assume that the private key is for the non-segwit address, and thus you get the non-segwit address in Electrum.

AFAIK there is currently no way to import private keys for segwit addresses from Bitcoin Core to Electrum.
newbie
Activity: 2
Merit: 0
Hi guys,

I created new wallet using bitcoin core but I don't want to wait for full sync. I'm trying to move my bitcoin address to the Electrum I used 'dumpprivkey' and tried to restore it using electrum but unfortunately it restores it with wrong address. If I put my btc address in electrum I can see my bitcoins but can't use them.

See screenshot: http://prntscr.com/j94wmu

Tool 'importprivkey' in bitcoin core restores right address.
I also can't import right address on blockchain.info using given private key.

The https://www.bitaddress.org/ 'wallet details' shows that 'wrong' address as 'Bitcoin Address Compressed'.

Bitcoin core v 0.16

can anyone help me?
Jump to: