Author

Topic: Trouble signing a Bitcoin Message in Bitcoin Core (Read 176 times)

legendary
Activity: 2380
Merit: 5213
December 08, 2020, 08:19:44 PM
#7
.......so I really believe there's something that may be going on with the software.......
The problem is that, bitcoin core only allows you to sign message with legacy addresses while you cannot generate a legacy address using the GUI and you need to use the console.
As people usually use the GUI and simply click on "Create new receiving address" button, they get a segwit address and cannot sign message with that.

For signing a message with bitcoin core, first you need to generate a legacy address using the command below.

Code:
getnewaddress "" legacy

Or the command below, if you want to label your address.

Code:
getnewaddress ("Enter the label here" "legacy")
copper member
Activity: 1652
Merit: 1325
I'm sometimes known as "miniadmin"
Sorry to step in onto this conversation; but a couple of weeks ago, we at the local spanish board were starting a thread similar to the "stake your address here" (but in spanish ofc) and were faced with the exact same error message.

In fact, I have just tried to sign a message using my core 0.20.1 wallet and I've got the same exact message. I'd like to think that after all these years I do know how to sign a message, so I really believe there's something that may be going on with the software. I didn't pay it much attention because I only use core as a node, not as a wallet, but now that I see this issue has been brought up....

I'll add that I tried signing a message from an "old" address from the core wallet, and with a new one created with the sole porpuse of signing it. I got the same error in both cases
HCP
legendary
Activity: 2086
Merit: 4361
...
I tried using a legacy address (The one that starts with 1) and I got a different error message: The address provided does not match any private key.
Then you are attempting to sign a message using an address for which your wallet does not contain the matching private key.

Where did this address come from? Did you generate it using your Bitcoin Core wallet? If so, how did you generate this address? Huh

If you didn't generate it from your Bitcoin Core wallet, then follow hosseinimr93's advice and generate a legacy address from within Bitcoin Core, then sign a message using the newly created legacy address.



Or get the private key from bitcoin core and import it to Electrum(As temporary) and make a sign message.
That is a terrible idea. Private keys should not be exported/imported without a very good reason (like last ditch attempts at fund recovery etc)... exposing one simply to sign a message is a terrible reason, imo. Undecided
legendary
Activity: 3374
Merit: 3095
BTC price road to $80k
Are you sure that the address that you are trying to sign a message is generated from your wallet created from that Bitcoin core?
Or are you trying to sign a message with the address generated from another source or wallet?

Check your receiving addresses tab and check if the address you are trying to sign is included on the addresses tab.

Or get the private key from bitcoin core and import it to Electrum(As temporary) and make a sign message.
legendary
Activity: 2380
Merit: 5213
According to the error message you referred to, you are using an address which your wallet doesn't have its private key.
How did you generate the legacy address? You probably did something wrong when generating the legacy address.

For generating a legacy address in bitcoin core, you need to go console and use the following command.

Code:
getnewaddress "" legacy
legendary
Activity: 1512
Merit: 4795
Leading Crypto Sports Betting & Casino Platform
It will be good to move your topic to 'bitcoin technical support', you will get fast and better helpful replies from there.

To sign a message from bitcoin core shouldn't be a problem but it will only sign the address(es) the wallet (your bitcoin core) is generating. I have not used bitcoin core before but it will surely sign the address it generates itself.
member
Activity: 120
Merit: 63
I am learning more and more, I am able to sign PGP messages, I tried signing a Bitcoin message with Bitcoin Core, I have a full node.

I get an error every time I try, the first time I tried, I changed to another address, as the address I was using was SegWit and Bitcoin Core does not support it apparently. I tried using a legacy address (The one that starts with 1) and I got a different error message: The address provided does not match any private key. I tried with a Bech32 address and I got the first error.

I guess Legacy is the way to go but why do I get an error?

Thanks
Jump to: