TeachMeBitcoin

P2PKH Overview

From TeachMeBitcoin, the free encyclopedia Reading time: 2 min

P2PKH: Pay-to-Public-Key-Hash (Legacy Addresses)

P2PKH (Pay-to-Public-Key-Hash) was the second major script type introduced to Bitcoin. It quickly became the standard for almost a decade and is the reason why most "Legacy" Bitcoin addresses start with the number 1.

1. Why Hash the Public Key?

As we saw in the P2PK module, locking coins directly to a public key had drawbacks:

2. The Privacy Advantage

With P2PKH, your public key is only revealed to the world at the moment you spend your coins. Until then, anyone looking at the blockchain only sees a random-looking 20-byte hash. This adds a layer of "Quantum Resistance" and makes it slightly harder to link transactions before they occur.

3. Human-Readable Addresses

P2PKH introduced the concept of the Base58Check Address.

4. The Standard for a Decade

From 2010 until the activation of SegWit in 2017, P2PKH was the dominant way to send and receive Bitcoin. Even today, billions of dollars worth of Bitcoin are stored in these legacy outputs.

Feature P2PK (Old) P2PKH (Standard)
Identifier Raw Public Key 20-byte Hash (RIPEMD160)
Address Prefix None 1
Data Size ~65 Bytes ~25 Bytes
Reveals Key on Receipt? Yes No

In the next section, we will break down the ScriptPubKey Structure of P2PKH.

☕ Help support TeachMeBitcoin

TeachMeBitcoin is an ad-free, open-source educational repository curated by a passionate team of Bitcoin researchers and educators for public benefit. If you found our articles helpful, please consider supporting our hosting and ongoing content updates with a clean donation:

Ethereum: 0x578417C51783663D8A6A811B3544E1f779D39A85
Bitcoin: bc1q77k9e95rn669kpzyjr8ke9w95zhk7pa5s63qzz
Solana: 4ycT2ayqeMucixj3wS8Ay8Tq9NRDYRPKYbj3UGESyQ4J
Address copied to clipboard!