How do I import a wallet into Bitcoin core?

0

I have the public address, and the private key of a BTC wallet. How can I import this into bitcoin core so that I can use it to sign messages?

I need to be able to sign a message to show that I possess the private keys for an account.

Thanks for any help.

John Murphy

Posted 2018-06-01T08:32:31.103

Reputation: 145

Question was closed 2018-11-28T17:53:26.930

what is YourLongPassphrase in that answer?John Murphy 2018-06-01T08:35:25.000

its a password you set up for bitcoin core wallet. if you don't have one (which is highly unrecommended) you should skip this commandZergatul 2018-06-01T08:36:57.430

It seems I have lost the passphrase. Is there any way to reset bitcoin core, or do i need to do a full reinstall? I have no funds on bitcoin core currently so have no problem resetting it all. Thanks for your help, zergatul.John Murphy 2018-06-01T08:41:24.853

I am not sure, you can try to delete wallet.dat fileZergatul 2018-06-01T08:54:33.303

Thanks. I ended up just doing a reinstall. It was simpler than I expected. And for posterity, when I went to "change passphrase" I just put in a new passphrase as both the old and new passphrase and it worked. I Was then able to use the console to import the priivate key. Thanks a lot.John Murphy 2018-06-01T09:07:49.170

Answer was given for a similar question as commented by Zergatul here. https://bitcoin.stackexchange.com/questions/5941/how-do-i-import-a-private-key-into-bitcoin-core

John Murphy 2018-06-01T09:08:41.293

Hi John, thanks, I've closed your question as a duplicate of that one, so that people who find your question will find Zergatul's answer.Murch 2018-11-28T17:53:08.667

No answers