P2WPKH
P2WPKH, or Pay-to-Witness-Public-Key-Hash, is a type of Bitcoin transaction output introduced with Segregated Witness (SegWit). It represents a shift from the traditional P2PKH scheme by placing the witness data outside the base transaction, improving efficiency and allowing future protocol extensions. P2WPKH outputs are commonly used on the Bitcoin network where SegWit is supported.
The scriptPubKey for P2WPKH is a witness program consisting of OP_0 followed by a 20-byte push, written
Spending a P2WPKH output differs from legacy scripts. There is no traditional scriptSig; instead, the input
Advantages of P2WPKH include reduced transaction weight due to the separation of witness data, which can lower
For compatibility, native Bech32 P2WPKH is supported by SegWit-aware wallets and nodes. To maintain compatibility with