Bitcoin Address
A Bitcoin address is an alphanumeric identifier used to receive BTC payments, derived from a public key through cryptographic hashing.
Key Takeaways
- A Bitcoin address is a short alphanumeric string derived from a public key through cryptographic hashing, serving as the destination for receiving BTC payments.
- Four major address formats exist: Legacy (P2PKH, starts with "1"), P2SH (starts with "3"), Native SegWit (P2WPKH, starts with "bc1q"), and Taproot (P2TR, starts with "bc1p"), each offering progressively lower transaction fees.
- Reusing a Bitcoin address degrades privacy by linking transactions together and exposes the public key on-chain, creating both a surveillance risk today and a theoretical quantum computing risk in the future.
What Is a Bitcoin Address?
A Bitcoin address is an alphanumeric identifier that represents a destination for a Bitcoin payment. It functions like a bank account number: you share it with someone who wants to send you BTC, and the network routes the funds to the corresponding UTXO locked by that address. Under the hood, an address encodes the cryptographic conditions required to spend the funds it receives.
Bitcoin addresses are not stored on the blockchain directly. Instead, the blockchain records output scripts that specify spending conditions. An address is simply a human-readable encoding of these scripts, making it easier to share and verify payment destinations. When you send Bitcoin to an address, your wallet decodes it back into the appropriate output script and includes that script in the transaction.
Over Bitcoin's history, the address format has evolved significantly. Each new format introduced improvements in fee efficiency, error detection, or scripting capability. Understanding these formats is essential for anyone building on Bitcoin or managing UTXOs efficiently. For a comprehensive comparison, see the research deep dive on Bitcoin address types.
How It Works
Every Bitcoin address begins with a private key: a randomly generated 256-bit number. The private key is multiplied by the generator point on the secp256k1 elliptic curve to produce a public key. The address is then derived from this public key through one or more rounds of cryptographic hashing.
Legacy Address Derivation (P2PKH)
The original address format, defined in Satoshi Nakamoto's initial codebase, uses a two-step hashing process sometimes called Hash160:
- Start with the compressed public key (33 bytes)
- Apply SHA-256 to get a 32-byte hash
- Apply RIPEMD-160 to get a 20-byte hash (the "public key hash")
- Prepend a version byte (0x00 for mainnet)
- Compute a 4-byte checksum by double-hashing the versioned payload with SHA-256 and taking the first 4 bytes
- Encode the result with Base58Check to produce the final address
Public Key (compressed, 33 bytes)
→ SHA-256
→ RIPEMD-160
→ 20-byte public key hash
Version byte (0x00) + public key hash
→ SHA-256(SHA-256(...))
→ first 4 bytes = checksum
Base58Check(version + hash + checksum) = "1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa"The double hashing provides two benefits: the SHA-256 step defends against potential weaknesses in RIPEMD-160, and the checksum catches typos when manually entering an address. Base58 encoding omits visually ambiguous characters (0, O, I, l) to reduce transcription errors.
SegWit and Bech32 Encoding
Native SegWit addresses (P2WPKH) use Bech32 encoding instead of Base58Check. Defined in BIP 173, Bech32 addresses start with "bc1q" for SegWit version 0 and use a BCH error-correcting code that can detect up to four character errors, a substantial improvement over the simple checksum in Base58Check.
The underlying derivation still produces a 20-byte public key hash, but the encoding is lowercase-only and uses a 32-character alphabet. This makes Bech32 addresses easier to read aloud, more efficient in QR codes, and less error-prone.
Taproot and Bech32m
P2TR (Taproot) addresses use Bech32m encoding, defined in BIP 350. The only difference from Bech32 is a single constant in the checksum algorithm: Bech32 uses the constant 1, while Bech32m uses 0x2bc830a3. This change fixes a weakness in Bech32 where inserting or deleting "q" characters before a trailing "p" could pass the checksum.
Taproot addresses encode a 32-byte tweaked public key rather than a 20-byte hash. This means Taproot locks funds directly to a public key (tweaked with optional script commitments) rather than to a hash of one. The result is 62-character addresses starting with "bc1p".
Address Format Comparison
The four major Bitcoin address formats differ in encoding, fee efficiency, and capabilities. Transaction sizes assume a simple single-input, two-output payment:
| Format | Prefix | Encoding | BIP | Year | Tx Size (vB) |
|---|---|---|---|---|---|
| P2PKH | 1... | Base58Check | — | 2009 | ~226 |
| P2SH | 3... | Base58Check | BIP 16 | 2012 | Varies |
| P2WPKH | bc1q... | Bech32 | BIP 84 | 2017 | ~141 |
| P2TR | bc1p... | Bech32m | BIP 341 | 2021 | ~154 |
For single-signature transactions, P2WPKH is the most fee-efficient format at approximately 141 virtual bytes. P2TR key-path spends are slightly larger at 154 vB because Taproot outputs are 43 bytes versus 31 bytes for P2WPKH. However, Taproot inputs are smaller (57.5 vB versus 68 vB for P2WPKH), so transactions with multiple inputs favor P2TR. By roughly three inputs, P2TR becomes the cheaper format overall.
The savings become dramatic for multisig: a 2-of-3 multisig spend using P2WSH costs about 104.5 vB per input, while the same spend using P2TR with MuSig2 key aggregation costs only 57.5 vB per input, since the aggregated Schnorr signature looks identical to a single-sig spend on-chain.
Why It Matters
Choosing the right address format directly impacts your transaction costs. A wallet using legacy P2PKH addresses pays roughly 60% more in fees than one using native SegWit for the same payment. Over hundreds or thousands of transactions, this difference compounds significantly. For businesses processing Bitcoin payments, format selection is a material cost decision.
Address format also affects privacy and functionality. Taproot addresses make complex spending conditions (multisig, timelocks, scripts) indistinguishable from simple payments on-chain, improving fungibility. Layer 2 protocols like Spark and the Lightning Network benefit from newer address formats that reduce on-chain footprint, since channel opens and closes consume block space. Using Taproot for channel funding transactions minimizes the cost of moving between on-chain and off-chain.
Use Cases
- Receiving payments: every Bitcoin wallet generates addresses to receive funds, deriving them from an extended public key using HD wallet derivation paths
- Exchange deposits: exchanges assign unique addresses per customer for deposit tracking and UTXO management
- Invoicing: merchants embed addresses in QR codes or Bitcoin URIs for point-of-sale and e-commerce payments
- Multisig custody: corporate treasuries use P2SH or P2TR addresses backed by multisig or threshold signature schemes
- Layer 2 funding: protocols like Spark and Lightning use on-chain addresses to open and close payment channels or virtual UTXOs
Risks and Considerations
Address Reuse
Reusing a Bitcoin address compromises privacy by linking all transactions to a single identifier. Chain analysis firms exploit this to cluster addresses, trace payment flows, and de-anonymize users. When you spend from a reused address, the public key is revealed on-chain, further reducing the cryptographic protection that hashing provides.
Modern HD wallets generate a new address for every transaction by default. For enhanced privacy, silent payments allow a sender to derive a unique address from a single published identifier without any interaction with the receiver.
Address Poisoning
Address poisoning attacks exploit address reuse and clipboard behavior. An attacker sends a tiny amount from an address that visually resembles the victim's, hoping the victim copies the wrong address from their transaction history. Always verify the full address, not just the first and last few characters.
Compatibility
Not all wallets and services support every address format. While P2PKH and P2SH are universally supported, some older platforms cannot send to Bech32 (bc1q) or Bech32m (bc1p) addresses. Before sharing a Taproot address, verify that the sender's wallet supports it. Adoption of P2TR has grown steadily since 2021 but is not yet universal across all exchanges and services.
Quantum Computing
Addresses that hash the public key (P2PKH, P2WPKH) provide a layer of protection: the public key is not revealed until the address is spent from. In contrast, P2TR exposes the tweaked public key in the output itself. While no quantum computer currently threatens elliptic curve cryptography, this is a design tradeoff worth understanding. Research into quantum-resistant address formats is already underway.
Checksum and Typo Protection
Both Base58Check and Bech32/Bech32m include checksums that detect accidental errors. If you mistype a single character, the checksum will fail and the wallet will reject the address. However, this protects against typos, not against deliberately crafted addresses. Always verify addresses through a secondary channel when sending large amounts.
This glossary entry is for informational purposes only and does not constitute financial or investment advice. Always do your own research before using any protocol or technology.