P2Pkh Explained: Bitcoin's Classic Address Format

P2Pkh Explained: Bitcoin's Classic Address Format

Lightspark Team
Lightspark Team
Oct 31, 2025
5
 min read

Key Takeaways

  • Standard Transaction Type: P2Pkh is the original and most common script for sending Bitcoin transactions.
  • Enhanced Security: It locks funds to a public key's hash, adding a layer of security.
  • Spending Mechanism: Unlocking funds requires the public key and a signature from the private key.

What is P2Pkh?

P2Pkh, or Pay-to-Public-Key-Hash, is the original and most prevalent script for Bitcoin transactions. When you send BTC, say 0.005 BTC, you are not sending it directly to someone's address. Instead, the transaction locks those funds to a cryptographic hash of the recipient's public key. This method was a foundational improvement for securing the network from its earliest days.

To spend the received funds, the recipient must present the original public key and a digital signature. The network verifies that the provided public key hashes to the one in the transaction lock and that the signature is valid. This two-step verification proves ownership of the private key, allowing the user to spend their sats without ever revealing the key itself.

How Does P2Pkh Work?

The process begins with the sender creating a locking script, known as the ScriptPubKey. This script sets the rules for spending the coins, containing the hash of the recipient's public key. It establishes a specific condition that must be met to access the funds.

To spend the coins, the recipient constructs an unlocking script, or ScriptSig. This script provides the full public key and a digital signature created with their private key. The Bitcoin network runs these two scripts together, confirming the public key matches the hash and the signature is authentic, thereby validating the transaction.

Advantages of Using P2Pkh

P2Pkh became the standard for a reason, offering significant improvements over sending funds directly to a public key. This method provides a robust framework that balances security with usability, establishing its long-standing position within the Bitcoin protocol.

  • Security: Hashing the public key protects against potential future cryptographic vulnerabilities.
  • Anonymity: Public keys are only revealed when spending, offering a slight privacy improvement.
  • Efficiency: Hashed public keys are shorter, resulting in more compact and user-friendly addresses.
  • Standardization: Its widespread adoption means broad compatibility across wallets and services.

Common Use Cases for P2Pkh

P2Pkh remains the workhorse for everyday Bitcoin activity. Its simplicity and reliability make it the go-to for a wide range of standard transactions across the network. From personal transfers to commercial payments, its application is fundamental to Bitcoin's operation.

  • Peer-to-Peer: Sending funds directly between two individuals.
  • Commercial: Customers paying businesses for products or services.
  • Standardization: Used by many wallets as the default address format.

Security Features of P2Pkh

P2Pkh transactions are secured through a multi-layered cryptographic process that protects funds and verifies ownership.

  • Hashing: The recipient's public key is hashed, shielding it from exposure until the funds are spent.
  • Signatures: Spending requires a digital signature from the corresponding private key, proving ownership without revealing the key.
  • Checksums: Addresses include a built-in checksum to prevent typos and accidental loss of funds to invalid addresses.

Transitioning from P2Pkh to Other Bitcoin Address Types

While P2Pkh established the foundation for Bitcoin transactions, the network has advanced. Newer address types like P2SH and SegWit have been introduced, offering new capabilities and efficiencies. This evolution reflects the ongoing development of the Bitcoin protocol to meet new demands for scalability and functionality.

  • Functionality: Newer formats like P2SH support complex scripts, including multi-signature wallets that require multiple keys to authorize a transaction.
  • Efficiency: SegWit addresses reduce transaction size, which lowers fees and improves the network's capacity to process payments.
  • Compatibility: A drawback is that not all wallets and services support the latest address formats, creating potential friction for users.

P2Pkh: A Foundation for the Lightning Network

The Lightning Network's architecture for off-chain payments is built upon the on-chain scripting capabilities first introduced by P2Pkh. Opening a payment channel requires a funding transaction on the Bitcoin blockchain. While these channels typically use more advanced multi-signature scripts, they follow the same core logic: funds are locked by a ScriptPubKey and can only be spent when the conditions are met. This scripting foundation, established by P2Pkh, is what makes complex second-layer solutions like Lightning possible.

Join The Money Grid

While P2Pkh provides the foundational script for securing Bitcoin, you can join a global payments network built on Bitcoin's open foundation with Lightspark, which offers infrastructure for instant Bitcoin transfers and self-custody wallets. Explore their solutions to see how you can build on this next-generation financial technology.

Power Instant Payments with the Lightning Network

Lightspark gives you the tools to integrate Lightning into your product and tap into emerging use cases, from gaming to streaming to real-time commerce.

Book a Demo

FAQs

How does P2PKH differ from P2SH in Bitcoin transactions?

P2PKH (Pay-to-Public-Key-Hash) sends funds to a public key hash, requiring a single signature to spend them, making it the standard for simple transactions. P2SH (Pay-to-Script-Hash) sends funds to a script hash, which allows for more complex spending conditions like multi-signature requirements, abstracting the complexity away from the sender.

Why is P2PKH considered the most common Bitcoin address format?

P2PKH (Pay-to-Public-Key-Hash) is the most common Bitcoin address format because it was the original standard, offering a significant security improvement over paying directly to a public key. By hashing the public key, it creates shorter addresses and protects the owner's public key from exposure until the moment of spending, establishing a foundational layer of security for the network.

What security features does P2PKH provide in Bitcoin transactions?

P2PKH secures transactions by locking funds to a public key hash, which requires a digital signature from the corresponding private key to prove ownership and authorize spending. This mechanism confirms the spender is the rightful owner without ever revealing the private key itself.

How can I generate a P2PKH address for receiving Bitcoin?

To generate a P2PKH address for receiving Bitcoin, you simply use a Bitcoin wallet, which automatically handles the complex cryptographic steps required to create a new address for you.

Can a P2PKH address be converted to a SegWit address?

A P2PKH address cannot be directly converted into a SegWit address. To move your bitcoin to the newer format, you must create a transaction that sends the funds from your legacy P2PKH address to a new SegWit address that you control.

More Articles