Bitcoin Forum
May 04, 2024, 12:57:21 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Electrum doesn't restore right wallet address  (Read 228 times)
vshogg (OP)
Newbie
*
Offline Offline

Activity: 2
Merit: 0


View Profile
April 23, 2018, 08:05:19 PM
 #1

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?
1714827441
Hero Member
*
Offline Offline

Posts: 1714827441

View Profile Personal Message (Offline)

Ignore
1714827441
Reply with quote  #2

1714827441
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
achow101
Staff
Legendary
*
Offline Offline

Activity: 3388
Merit: 6581


Just writing some code


View Profile WWW
April 23, 2018, 08:20:28 PM
 #2

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.

LoyceV
Legendary
*
Online Online

Activity: 3304
Merit: 16593


Thick-Skinned Gang Leader and Golden Feather 2021


View Profile WWW
April 23, 2018, 08:45:17 PM
 #3

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.

vshogg (OP)
Newbie
*
Offline Offline

Activity: 2
Merit: 0


View Profile
April 23, 2018, 09:03:59 PM
 #4

Yay! Bingo! It works in Electrum

You saved my ass from weeks of waiting Cheesy

Thanks guys
HCP
Legendary
*
Offline Offline

Activity: 2086
Merit: 4316

<insert witty quote here>


View Profile
April 23, 2018, 11:21:01 PM
Merited by BitMaxz (1)
 #5

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

█████████████████████████
████▐██▄█████████████████
████▐██████▄▄▄███████████
████▐████▄█████▄▄████████
████▐█████▀▀▀▀▀███▄██████
████▐███▀████████████████
████▐█████████▄█████▌████
████▐██▌█████▀██████▌████
████▐██████████▀████▌████
█████▀███▄█████▄███▀█████
███████▀█████████▀███████
██████████▀███▀██████████
█████████████████████████
.
BC.GAME
▄▄░░░▄▀▀▄████████
▄▄▄
██████████████
█████░░▄▄▄▄████████
▄▄▄▄▄▄▄▄▄██▄██████▄▄▄▄████
▄███▄█▄▄██████████▄████▄████
███████████████████████████▀███
▀████▄██▄██▄░░░░▄████████████
▀▀▀█████▄▄▄███████████▀██
███████████████████▀██
███████████████████▄██
▄███████████████████▄██
█████████████████████▀██
██████████████████████▄
.
..CASINO....SPORTS....RACING..
█░░░░░░█░░░░░░█
▀███▀░░▀███▀░░▀███▀
▀░▀░░░░▀░▀░░░░▀░▀
░░░░░░░░░░░░
▀██████████
░░░░░███░░░░
░░█░░░███▄█░░░
░░██▌░░███░▀░░██▌
░█░██░░███░░░█░██
░█▀▀▀█▌░███░░█▀▀▀█▌
▄█▄░░░██▄███▄█▄░░▄██▄
▄███▄
░░░░▀██▄▀


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
BitMaxz
Legendary
*
Offline Offline

Activity: 3248
Merit: 2965


Block halving is coming.


View Profile WWW
April 23, 2018, 11:26:37 PM
 #6

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?


█▀▀▀











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











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
Xynerise
Sr. Member
****
Offline Offline

Activity: 322
Merit: 363

39twH4PSYgDSzU7sLnRoDfthR6gWYrrPoD


View Profile
April 23, 2018, 11:30:20 PM
Merited by BitMaxz (1)
 #7

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
LoyceMobile
Hero Member
*****
Offline Offline

Activity: 1655
Merit: 687


LoyceV on the road. Or couch.


View Profile WWW
April 24, 2018, 04:54:04 AM
 #8

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.

LoyceV on the road Advertise here for LN Don't deal with this account (exception)
Advertise here for LN Tip my kids Exchange LN (20 coins). 1% fee. No KYC <€50/month
My useful topics: Meritt & Trust & Moreee Art Advertise here for LN Foru[url=https://bitcointalk.org/m
TryNinja
Legendary
*
Offline Offline

Activity: 2828
Merit: 6977



View Profile WWW
April 24, 2018, 08:33:18 PM
 #9

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

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

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

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

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

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

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











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











▄▄▄▄█
LoyceV
Legendary
*
Online Online

Activity: 3304
Merit: 16593


Thick-Skinned Gang Leader and Golden Feather 2021


View Profile WWW
April 25, 2018, 05:40:22 AM
 #10

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.

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!