Message Signing
Signing arbitrary text with your key to prove you control an address, without sending coins.
Basically
You sign a message with your private key to prove that you control a Bitcoin address. Your bitcoin stays where it is.
Key Takeaways
- Message signing uses your private key to create a cryptographic signature over arbitrary text. It proves that you control a specific Bitcoin address without moving any funds.
- The legacy format supports only P2PKH addresses. BIP-322 works with all address types, including SegWit and Taproot.
- You can use message signing for proof of address ownership, proof of reserves, identity verification, and dispute resolution. Each use case demonstrates control of bitcoin without spending it.
What Is Message Signing?
Message signing lets a Bitcoin holder use their private key to create a digital signature over an arbitrary text message. Anyone can verify that signature against the corresponding public key or address, confirming that the signer controls the key associated with that address. The process never broadcasts a transaction or moves any funds on the blockchain.
Satoshi Nakamoto included basic message signing in the original Bitcoin Core software through the signmessage and verifymessage RPC commands. The original implementation supported only legacy P2PKH (1...) addresses. New standards later extended message signing to SegWit, Taproot, and the full range of Bitcoin address formats.
How It Works
Message signing relies on the same elliptic curve cryptography that secures Bitcoin transactions. You prove knowledge of a private key without revealing it. The process differs depending on which standard you use.
Legacy Message Signing
The original Bitcoin message signing format works exclusively with P2PKH addresses. It uses a recoverable ECDSA signature scheme.
The recoverable property makes verification possible without separately providing the public key. Anyone can mathematically recover the public key from the message and signature, derive the corresponding address, and compare it to the claimed address.
BIP-137: SegWit Address Support
SegWit introduced new address types, P2SH-P2WPKH and P2WPKH, but the legacy format could not distinguish which address type a signature corresponded to. BIP-137 solved this by defining specific header byte ranges in the recovery flag.
BIP-137 extended message signing to SegWit addresses, but it still relies on ECDSA key recovery and cannot support Taproot (P2TR) addresses. Schnorr signatures do not support public key recovery, so a fundamentally different approach was needed.
BIP-322: Generic Signed Message Format
BIP-322, authored by Karl-Johan Alm, defines a generic message signing format that works with any Bitcoin script type, including Taproot. It uses a pair of virtual transactions instead of relying on key recovery.
The to_sign transaction has an invalid input that references a non-existent transaction, so it can never be broadcast on the actual network. Its signature is structurally identical to a real Bitcoin transaction signature. Existing hardware wallets and signing devices can therefore produce BIP-322 proofs using their standard transaction signing flow.
BIP-322 requires BIP-174 (PSBT), BIP-340 (Schnorr), and BIP-341 (Taproot). It also supports proof of funds, where you demonstrate control over a set of UTXOs rather than just an address.
Proof of Address Ownership
The most common use case is proving that you control a specific Bitcoin address. Exchanges, OTC desks, and counterparties may require this before processing withdrawals, establishing trade relationships, or resolving disputes. You produce a signature over an agreed-upon message, often including a timestamp or challenge string, and the verifier confirms that it matches the claimed address.
Proof of Reserves
Exchanges and custodians can use message signing to demonstrate that they control the bitcoin they claim to hold. Signing a timestamped statement with the keys that control their on-chain holdings provides cryptographic evidence of solvency. BIP-127 formalised a simple proof-of-reserves transaction format, BIP-322's proof-of-funds mode extends this further, and the proof of reserves standards research article examines these constructions in more depth.
Identity Verification and Authentication
Message signing can serve as authentication when you sign a server-provided challenge with your Bitcoin key. You prove control of a known address without revealing the private key or sending a transaction. This pattern appears in peer-to-peer marketplaces, domain ownership verification, and Nostr identity linkage, and the Spark message signer tool provides a simple interface for generating and verifying these proofs.
Dispute Resolution
Message signing provides cryptographic proof of address control at a specific point in time for peer-to-peer transactions or legal proceedings. A party can demonstrate that they were the intended recipient of a payment, or that they controlled the sending address when a transaction was made.
Contract and Agreement Signing
Parties can use message signing to cryptographically commit to the text of an agreement. Each party signs the agreement text with their Bitcoin key, creating a non-repudiable record tied to a specific public key. The signed record does not replace legal signatures, but it provides a tamper-evident record that can supplement traditional documentation.
Signature Does Not Equal Ownership
A valid message signature proves that someone had access to the private key at the time of signing. It does not prove legal ownership of the bitcoin, exclusive control, or that the funds are unencumbered, and a custodian might sign on behalf of many depositors. The distinction matters when you use message signing for proof of reserves or legal proceedings.
Replay and Reuse
A signed message can be shown to anyone at any time. Without a challenge string, timestamp, or other freshness guarantee, someone could present an old signature as current proof. Verifiers should always include a unique challenge, such as a nonce or timestamp, in the message text to prevent replay attacks.
Address Type Limitations
Legacy message signing works only with P2PKH addresses, while BIP-137 extends support to SegWit addresses but not Taproot. Only BIP-322 covers all current address types. Wallet and verifier support for BIP-322 is still being adopted across the ecosystem, so you should confirm compatibility before relying on it.
Signing Risks
You should be cautious about what you sign because malicious actors could craft messages designed to mislead when taken out of context. The magic prefix ("Bitcoin Signed Message:\n") in the legacy format exists specifically to prevent signed messages from being confused with signed transactions. BIP-322's tagged hash serves the same purpose, ensuring that a message proof can never be mistaken for a valid on-chain transaction.
Privacy Implications
Signing a message with an address publicly links that address to your identity. The link can undermine fungibility and privacy by creating a verifiable connection between your real-world identity and on-chain activity. You can limit exposure by using addresses not linked to your main holdings or by practising address rotation.
The glossary entry is for informational purposes only and does not constitute financial or investment advice. You should always do your own research before using any protocol or technology.