Bitcoin Forum
May 16, 2024, 03:59:06 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1]
1  Bitcoin / Bitcoin Technical Support / Re: Bitcoin Core generates wrong private key? on: February 16, 2021, 05:11:34 PM
Quote
For P2WPKH addresses (Bech32, starting with 'bc1')
This time we'll add p2wpkh: in front of the private key.
For example
Code:
p2wpkh:5PrivateKey

This actually worked. Thanks  Shocked I think I used p2wpkh-p2sh prefix previously. Still is very confusing for me but at least now I have confirmed that private key generated in offline and unsynced bitcoin core wallet can be imported to electrum
2  Bitcoin / Bitcoin Technical Support / Re: Bitcoin Core generates wrong private key? on: February 16, 2021, 05:00:47 PM
I used command
dumpprivkey bc1(recieve address I just generated)

I tried importing into electrum with prefix but no luck either. Just like I explained in point 6 when you paste that private key into bitaddress.org (offline version from github) you get many addresses but none even looks like recieve address generated in bitcoin core (bc1.....)
Same situation happens when you generate address with native segwit Bech32 unchecked.

Quote
Can you try creating a new Bitcoin Core wallet, and then importing that private key into the new wallet using importprivkey, and see if the new wallet shows a different address?
Just did that on fresh linux virtual machine.

Code:
importprivkey (...)
null

And nothing else happened.
3  Bitcoin / Bitcoin Technical Support / Bitcoin Core generates wrong private key? on: February 16, 2021, 04:14:14 PM
I try to make this short, has anyone enounterd a problem where private key from bitcoin core gives different address with 0 balance when imported info electrum?

Steps to reproduce.
1. Install bitcoin core 0.21.0 on windows or linux
2. Cant sync because machine is offline
3. Create wallet and generate native segwit address to recieve coins (it starts with bc1***)
You can send some coins on that address and it can be searched on blockchain explorer
4. Open console and dump priv key for that address
5. When you try to import that key into Electrum the balance shows 0
6. When you enter that private key into bitadress.org it shows completely different public address and does not show the one you generated in bitcoin core (bc1***)

My question is, is it really a bug in 0.21.0 version, or maybe its not possible to move wallets like that?
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!