Bitcoin Forum
June 16, 2019, 12:03:37 PM *
News: Latest Bitcoin Core release: 0.18.0 [Torrent] (New!)
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Electrum doesn't restore right wallet address  (Read 146 times)
vshogg
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?
1560686617
Hero Member
*
Offline Offline

Posts: 1560686617

View Profile Personal Message (Offline)

Ignore
1560686617
Reply with quote  #2

1560686617
Report to moderator
Bitcoin Poker 3.0
The Largest Bitcoin Poker Site
Bad Beat Jackpot Available
No Limit Texas Hold'em Cash Games And Tournaments
PLAY NOW
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1560686617
Hero Member
*
Offline Offline

Posts: 1560686617

View Profile Personal Message (Offline)

Ignore
1560686617
Reply with quote  #2

1560686617
Report to moderator
1560686617
Hero Member
*
Offline Offline

Posts: 1560686617

View Profile Personal Message (Offline)

Ignore
1560686617
Reply with quote  #2

1560686617
Report to moderator
1560686617
Hero Member
*
Offline Offline

Posts: 1560686617

View Profile Personal Message (Offline)

Ignore
1560686617
Reply with quote  #2

1560686617
Report to moderator
achow101
Moderator
Legendary
*
Offline Offline

Activity: 1792
Merit: 2459


bc1qshxkrpe4arppq89fpzm6c0tpdvx5cfkve2c8kl


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: 1512
Merit: 4066


Self-made Legendary outside Meta!


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
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: 994
Merit: 1615

<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

BitMaxz
Legendary
*
Offline Offline

Activity: 1456
Merit: 1185


Beware on fake trezor website from google ads.


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?


Xynerise
Sr. Member
****
Offline Offline

Activity: 322
Merit: 294

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

Activity: 369
Merit: 69

theymos: "scammers are often pretty stupid"


View Profile
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 (or in bed, couch, ....). Don't deal with this account (there's one exception), I use it on untrusted devices.
<<Lightning Network: Tip me 1 satoshi>>. <<Exchange Bitcoin LN for onchain coins>>
<<"When AI roams free, that's LoyceV...on mobile" (by Steamtyme)>>  <<your text here for free? come up with something good>>
Look at me, I'm DT3!
[/size]
TryNinja
Legendary
*
Offline Offline

Activity: 1036
Merit: 1299


CS <3


View Profile
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

LoyceV
Legendary
*
Online Online

Activity: 1512
Merit: 4066


Self-made Legendary outside Meta!


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:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!