← Back to Glossary

Pay-to-Witness-PubKey-Hash (P2WPKH): Definition and How Native SegWit Addresses Work

What is Pay-to-Witness-PubKey-Hash? Pay-to-Witness-PubKey-Hash (P2WPKH) is the standard transaction format for Native SegWit Bitcoin addresses. Instead of storing signature data inside the main transaction, P2WPKH places it in the witness section, reducing transaction size, lowering fees, and improving network efficiency.

y-to-Witness-PubKey-Hash (P2WPKH) Explained in Simple Terms

P2WPKH is the modern version of Bitcoin's original Pay-to-PubKey-Hash (P2PKH) transaction format.

The security model remains largely the same:

  • Bitcoin is locked to the hash of a public key.

  • Only the owner of the matching private key can spend the funds.

The major difference is how transaction data is organized.

With P2WPKH, digital signatures are stored in Witness Data instead of the traditional ScriptSig field. Because witness data is treated differently when calculating transaction weight, P2WPKH transactions usually consume less block space and therefore cost less to confirm.

For most users, the main advantages are lower fees and better compatibility with modern Bitcoin features.

How y-to-Witness-PubKey-Hash (P2WPKH) Works

P2WPKH follows the SegWit transaction model.

The process works as follows:

  1. Wallet Generates Keys
    A private key and corresponding public key are created.

  2. Native SegWit Address Generated
    The wallet creates a P2WPKH address.

  3. Funds Received
    Bitcoin is sent to the address.

  4. Witness Data Created
    When spending the funds, the wallet generates a digital signature and places it in the witness section.

  5. Network Verification
    Bitcoin nodes verify the witness data before accepting the transaction.

The spending process can be summarized as:

The witness proves ownership while keeping transaction data more efficient.

Example of y-to-Witness-PubKey-Hash (P2WPKH) in Practice

Alice creates a modern Bitcoin wallet that generates a Native SegWit address beginning with bc1.

Bob sends Bitcoin to that address.

Later, when Alice spends the funds:

  • her wallet creates a digital signature

  • the signature is stored in the witness section

  • Bitcoin nodes verify the witness before approving the transaction

Compared with an equivalent legacy transaction, Alice generally pays a lower transaction fee because the witness data receives a lower weight in block calculations.

Why P2WPKH Matters

P2WPKH became the preferred transaction format for everyday Bitcoin payments because it improves efficiency without changing Bitcoin's security model.

Its main benefits include:

  • lower transaction fees

  • improved scalability

  • reduced transaction weight

  • compatibility with SegWit

  • support for modern wallet infrastructure

For most users, switching from legacy addresses to P2WPKH requires no additional technical knowledge.

P2WPKH Address Format

Native SegWit addresses use the Bech32 encoding format and typically begin with:

bc1q

Example:

bc1qw508d6qejxtdg4y5r3zarvary0c5xw7kygt080

Compared with older address formats, Bech32 addresses include stronger error detection and are less likely to be entered incorrectly.

P2WPKH vs P2PKH

P2PKH

Characteristics include:

  • addresses begin with 1

  • uses legacy transaction structure

  • signatures stored in ScriptSig

  • generally higher transaction fees

P2WPKH

Characteristics include:

  • addresses begin with bc1q

  • uses witness data

  • lower transaction weight

  • generally lower transaction fees

  • supports SegWit features

Both formats provide the same ownership model, but P2WPKH is considerably more efficient.

P2WPKH vs P2SH-Wrapped SegWit

P2SH-Wrapped SegWit

Addresses begin with:

3

Purpose:

  • compatibility with older wallet software

Native SegWit (P2WPKH)

Addresses begin with:

bc1q

Benefits:

  • lower fees

  • simpler transaction structure

  • full SegWit efficiency

Today, most new wallets recommend using Native SegWit whenever possible.

P2WPKH and Witness Data

One of the defining characteristics of P2WPKH is the use of Witness Data.

Instead of placing digital signatures inside ScriptSig, the wallet stores them separately in the witness structure.

This approach:

  • reduces effective transaction size

  • fixes transaction malleability

  • improves scalability

  • enables technologies such as the Lightning Network

Witness Data is one of the core innovations introduced by SegWit.

Is P2WPKH Still Recommended?

Yes.

P2WPKH remains one of the most widely recommended address formats for standard Bitcoin transactions.

Although Taproot introduces additional features, Native SegWit continues to offer an excellent balance of:

  • compatibility

  • efficiency

  • security

  • low transaction fees

Most modern wallets create P2WPKH addresses by default unless the user specifically chooses another format.

Frequently Asked Questions

Still have questions about y-to-Witness-PubKey-Hash (P2WPKH)?

Have traffic?

Earn with the best product in cloud mining

Become a partner
15%

First purchase

On every new user’s first purchase. No limit on the purchase amount.

5%

Repeat purchases

Earn for life from every repeat purchase. When the user buys again, you earn again.