P2WPKH

From Trezor Wiki
Jump to: navigation, search

Pay to Witness Public Key Hash has the same semantics as P2PKH, except that the signature is not placed at the same location as before.

Segregated Witness (SegWit) moves the proof of ownership from the scriptSig part of the transaction to a new part called the witness of the input. Before SegWit the transaction signature was used in the calculation of the transaction id. The signature contains the same information as a P2PKH spend but is located in the witness instead of the scriptSig. The scriptPubKey is modified from

scriptPubKey: OP_DUP OP_HASH160 <pubKeyHash> OP_EQUALVERIFY OP_CHECKSIG

to

scriptPubKey: O <pubKeyHash>

P2WPKH in Trezor and Trezor Wallet

Trezor supports P2WPKH via BIP49 and BIP84 altough there is not support in Trezor Wallet yet.

See also our blog.