Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: Bytecoiner419 on January 15, 2021, 07:14:16 PM



Title: Private Key Does Not Match Address (Please Help!)
Post by: Bytecoiner419 on January 15, 2021, 07:14:16 PM

ok, so I have trouble saving bitcoin for the future so a while back I made an address on my core wallet and then dumped the private key and saved it on a piece of paper.

Now years later and I hand typed the private key into another wallet and it did import a wallet but its not the same address and the balance is 0.

I check again on a new version of the core wallet (not synced) and I dumped the private key for that address and again the private key that is dumped is not to the address with my coins.

How is this?

Any help would be appreciated.  

the original address starts with bc1 (balance: more than 0)  8)

its now showing as starting with 1KT (balance: 0)

Note: the "public key" seems to be the same.


Title: Re: Private Key Does Not Match Address (Please Help!)
Post by: LoyceV on January 15, 2021, 07:56:18 PM
the original address starts with bc1 (balance: more than 0)  8)

its now showing as starting with 1KT (balance: 0)
Try this (in Electrum):
How To Import Segwit WIF from Bitcoin Core to Electrum

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 should generate the corresponding Bech32 address


Title: Re: Private Key Does Not Match Address (Please Help!)
Post by: HCP on January 15, 2021, 09:18:20 PM
ok, so I have trouble saving bitcoin for the future so a while back I made an address on my core wallet and then dumped the private key and saved it on a piece of paper.

Now years later and I hand typed the private key into another wallet and it did import a wallet but its not the same address and the balance is 0.

the original address starts with bc1 (balance: more than 0)  Cool
its now showing as starting with 1KT (balance: 0)
It's possible that "another wallet" does not support generating "bc1" addresses and is defaulting to generating the older "legacy" addresses. So, which wallet application did you try and import your private key into? ??? 


I check again on a new version of the core wallet (not synced) and I dumped the private key for that address and again the private key that is dumped is not to the address with my coins.
What exactly did you do here? I'm confused? ??? You dumped the key from Bitcoin Core and attempted to import it into a different wallet? ???


Title: Re: Private Key Does Not Match Address (Please Help!)
Post by: Bytecoiner419 on January 16, 2021, 04:45:05 AM


Thank you everyone for the help.

I found a way to sync my core wallet and I will just let it fully catch up and then I should have access to send them off my core wallet for good.

I might keep it running too just to help the network.  ;)


Title: Re: Private Key Does Not Match Address (Please Help!)
Post by: Chikito on January 16, 2021, 05:36:06 AM
Try this (in Electrum):
How To Import Segwit WIF from Bitcoin Core to Electrum

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 should generate the corresponding Bech32 address

it didn't with WIF Private key (begin with 5). it must be converting into WIF Compressed (begin with K or L) to import that method.

https://i.postimg.cc/vBys9prK/0.jpg

I might keep it running too just to help the network.  ;)
Only if you run a full node.



Title: Re: Private Key Does Not Match Address (Please Help!)
Post by: pooya87 on January 16, 2021, 06:34:28 AM
it didn't with WIF Private key (begin with 5). it must be converting into WIF Compressed (begin with K or L) to import that method.
Users should not even have an uncompressed private key (WIF starting with 5) because uncompressed public keys aren't used in SegWit addresses by default, otherwise they would be non-standard and the user can't spend their coins without a miner's help to manually include the tx in their block.