> ## Content Index
> Fetch the complete content index at: https://cnainbridge.org/llms.txt
> Use this file to discover other available public pages before exploring further.

# Bitcoin message signatures: verify text and address limits
- URL: https://cnainbridge.org/bitcoin-message-signatures/
- Published: 2026-11-26T10:31:17.000Z
- Updated: 2026-11-26T14:30:51.000Z
- Description: Check a Bitcoin address, message and signature without exposing a key, then distinguish text mismatches, missing keys and unsupported signing formats.
- Author: Colin Hensley
- Tags: Bitcoin nodes, #troubleshooting

Bitcoin Core's `signmessage` creates a legacy message signature, and `verifymessage` checks it against an address and the exact signed text. In Core 32.1, these commands support legacy P2PKH addresses, not SegWit or Taproot addresses. Verification needs the address, signature and message; it doesn't require the signer's private key or a wallet unlock.

I check the format before troubleshooting the text. A valid signature from another wallet can use a protocol Core's legacy verifier doesn't accept. Conversely, a string that looks like a signature hasn't necessarily passed a cryptographic check.

## Confirm the address and signing format first

Ask the sender for the exact address, original message and signature, along with the wallet's signing format. For Core's legacy workflow, the address must decode as P2PKH on the selected network. A mainnet legacy address commonly starts with `1`, but a prefix alone isn't a validity check.

The restriction is explicit in the [32.1 message verifier](https://github.com/bitcoin/bitcoin/blob/v32.1/src/common/signmessage.cpp?ref=cnainbridge.org): it rejects a destination that isn't a public-key hash. Having a valid SegWit or Taproot receiving address doesn't make it usable with this command. Don't replace the claimed address with a different legacy address merely to get a successful check; that would verify a different claim.

Keep the intended address independently established. If an untrusted party supplies both a new address and its matching signature, the check alone doesn't connect that address to the person or organization you meant to contact.

## Verify the exact three-part message locally

Use your trusted local Core connection. The [node setup guide](https://cnainbridge.org/run-bitcoin-node/) covers the surrounding connection setup. These examples use placeholders: replace `ADDRESS`, `BASE64_SIGNATURE` and `EXACT_MESSAGE` with the supplied values, keeping each as a separate quoted argument.

```
bitcoin-cli help verifymessage
bitcoin-cli verifymessage "ADDRESS" "BASE64_SIGNATURE" "EXACT_MESSAGE"
```

The order is address, signature, message. In the GUI Console, omit the `bitcoin-cli` prefix. The [RPC reference](https://bitcoincore.org/en/doc/32.0.0/rpc/util/verifymessage/?ref=cnainbridge.org) returns a boolean for a completed check. Its shared signing example includes a wallet-unlock step, but that step isn't a prerequisite for verification.

Preserve capitalization and punctuation. Spaces, tabs and line breaks also matter: the [GUI's verification instructions](https://github.com/bitcoin/bitcoin/blob/v32.1/src/qt/forms/signverifymessagedialog.ui?ref=cnainbridge.org) specifically call out those characters. For multiline text or messages containing quotation marks, the GUI's `Verify Message` tab avoids a shell changing the text through quoting or escape rules. Fill its address, message and signature fields, then choose Verify Message.

| Result or error               | Meaning                                                                                      | Next check                                                                                           |
| ----------------------------- | -------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- |
| true                          | The signature matches this message and P2PKH address under Core's legacy verification rules. | Read the actual statement and its context before accepting the claim.                                |
| false                         | The signature didn't validate for this address and message.                                  | Recheck the exact text, signature and intended address. A failure alone doesn't identify dishonesty. |
| Invalid address               | Core couldn't decode a valid address for the selected network.                               | Check transcription and network.                                                                     |
| Address does not refer to key | The destination isn't the P2PKH type this verifier accepts.                                  | Confirm the protocol and address type with the sender.                                               |
| Malformed base64 encoding     | The supplied signature couldn't be decoded as base64.                                        | Copy the signature field again, without surrounding prose or message-envelope markers.               |

Those errors are distinct from a completed check returning `false`, as the [RPC result handling](https://github.com/bitcoin/bitcoin/blob/v32.1/src/rpc/signmessage.cpp?ref=cnainbridge.org) shows. A base64 string can decode successfully and still fail verification. A tool that checks only length or encoding can't establish a valid signature.

## Sign a clear statement with the wallet that holds the key

Before signing, read the entire message and confirm its purpose with the requester through a trusted channel. Core's signing dialog warns against vague or random statements and asks you to sign only fully detailed statements you agree to. A harmless-looking challenge can still be used as an account authorization or misleading statement elsewhere.

Use the wallet containing the signing key for the agreed P2PKH address. In a multiwallet setup, select that wallet explicitly. The example below illustrates the documented argument order; replace the wallet name, address and message with your own agreed values.

```
bitcoin-cli -rpcwallet="YOUR_WALLET" help signmessage
bitcoin-cli -rpcwallet="YOUR_WALLET" signmessage "YOUR_P2PKH_ADDRESS" "YOUR_AGREED_MESSAGE"
```

[signmessage](https://bitcoincore.org/en/doc/32.0.0/rpc/wallet/signmessage/?ref=cnainbridge.org) returns the signature in base64\. An encrypted wallet must be unlocked for signing. In the GUI's Sign Message tab, review the address and text, choose Sign Message, and use the wallet's own unlock prompt if required. Verification by someone else never requires sending them that passphrase.

A watch-only address doesn't supply a signing key. If the wallet reports `Private key for the entered address is not available.`, check that you selected the wallet that actually holds the key. That is a different problem from the non-P2PKH address-type error. Reinstalling Core or repeatedly unlocking a watch-only wallet won't create the missing key.

![Bitcoin Core Sign Message panel with an empty signature field and red Private key for the entered address is not available error](https://storage.ghost.io/c/a1/4d/a14da2a0-3ee7-4807-afb1-3b1f503a3916/content/images/2026/11/chain-bridge-bitcoin-message-signatures-inline.webp)

An address can be listed in a wallet without its signing key being available. The signature field remains empty in this error state. Select Enlarge image to read the details.

I keep signing inside the wallet because exporting a private key adds exposure without solving a format mismatch. Core also has a `signmessagewithprivkey` command, but a request to verify a message is no reason to paste a private key or seed into a website, chat or support ticket.

## Use the published checks to distinguish failure cases

Core's [wallet message test](https://github.com/bitcoin/bitcoin/blob/v32.1/test/functional/wallet%5Fsignmessagewithaddress.py?ref=cnainbridge.org) checks matching and mismatched address/signature pairs. Its separate [message RPC test](https://github.com/bitcoin/bitcoin/blob/v32.1/test/functional/rpc%5Fsignmessagewithprivkey.py?ref=cnainbridge.org) checks address-type and decoding failures. These are the behaviors asserted by those published tests:

| Test case                                                     | Expected result                | Useful distinction                                                      |
| ------------------------------------------------------------- | ------------------------------ | ----------------------------------------------------------------------- |
| Matching message, signature and P2PKH address                 | Verification succeeds.         | The complete matching set matters.                                      |
| A different address or its signature substituted              | Verification returns false.    | Changing the expected address breaks this tested pair.                  |
| Nested or native SegWit address passed to the legacy verifier | Address does not refer to key. | Encoding compatibility must be resolved before interpreting a mismatch. |

## Match BIP 322 signatures with a compatible verifier

[BIP 322](https://github.com/bitcoin/bips/blob/master/bip-0322.mediawiki?ref=cnainbridge.org) specifies a more general message-signing format using Bitcoin Script. It addresses scripts beyond the legacy P2PKH case, but that doesn't add support to Core's existing `verifymessage` implementation. Other wallets can also offer different protocols behind a similarly named Sign Message control.

Agree on the address type and protocol before requesting a signature. Use a verifier that documents support for the format the signer produced. Don't assume that every base64 signature is interchangeable, or that renaming an output makes it a Core-compatible legacy signature.

## Limit the conclusion to the signed statement

A successful check doesn't establish someone's legal identity, prove they sent a past transaction, or guarantee that they can spend funds now. BIP 322's motivation explains the limits of message-based proofs, including that signatures can become obsolete and that legacy ECDSA signatures don't commit to the public key. Avoid treating an arbitrary address/signature pair as an unconditional proof of secret-key possession.

For a fresh request, agree on a specific purpose and intended recipient, and include a unique challenge plus an expiry in the message when appropriate. These are application checks: the verifier doesn't automatically enforce an expiry written in the text. Preserve the exact statement with its address and signature, and confirm the intended address through your trusted contact channel before relying on the result. Use the [node guides](https://cnainbridge.org/tag/nodes/) if the next problem is the local connection rather than the signature.