<p>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?</p>

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

<p>Thanks for any help.</p>

CC BY-SA 4.0
2018-06-01T08:34:37.030Z
https://bitcoin.stackexchange.com/questions/5941/how-do-i-import-a-private-key-into-bitcoin-core
Zergatul
CC BY-SA 4.0
2018-06-01T08:35:25.000Z
what is YourLongPassphrase in that answer?
John Murphy
CC BY-SA 4.0
2018-06-01T08:36:57.430Z
its a password you set up for bitcoin core wallet. if you don't have one (which is highly unrecommended) you should skip this command
Zergatul
CC BY-SA 4.0
2018-06-01T08:41:24.853Z
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
CC BY-SA 4.0
2018-06-01T08:54:33.303Z
I am not sure, you can try to delete wallet.dat file
Zergatul
CC BY-SA 4.0
2018-06-01T09:07:49.170Z
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
CC BY-SA 4.0
2018-06-01T09:08:41.293Z
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
CC BY-SA 4.0
2018-11-28T17:53:08.667Z
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
<bitcoin-core><message-signing><private-key-import><import><wallet-import>
How do I import a wallet into Bitcoin core?
John Murphy
# How do I import a wallet into Bitcoin core?

(Asked by: username_0 on 2018-06-01)

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.

**Tags:** bitcoin-core, message-signing, private-key-import, import, wallet-import

> **Comments:**
> **username_1**: https://bitcoin.stackexchange.com/questions/5941/how-do-i-import-a-private-key-into-bitcoin-core  
> **username_0**: what is YourLongPassphrase in that answer?  
> **username_1**: its a password you set up for bitcoin core wallet. if you don't have one (which is highly unrecommended) you should skip this command  
> **username_0**: 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.  
> **username_1**: I am not sure, you can try to delete wallet.dat file  
> **username_0**: 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.  
> **username_0**: Answer was given for a similar question as commented by username_1 here. https://bitcoin.stackexchange.com/questions/5941/how-do-i-import-a-private-key-into-bitcoin-core  
> **username_2**: Hi John, thanks, I've closed your question as a duplicate of that one, so that people who find your question will find username_1's answer.  

---

## 0 answers

