Overview of common script types

# Script type Description
p2pk Pay-to-pubkey Payment to a public key. The public key is published with the lock script.
p2pkh Pay-to-pubkey-hash Payment to a public key hash (bitcoin address). The public key is published with the unlock script.
p2sh Pay-to-script-hash Payment to the hash of a redeem script. The redeem script has to be part of the unlock script.
p2wpkh Pay-to-witness-pubkey-hash Payment to a witness public key hash.
p2wsh Pay-to-witness-script-hash Payment to a witness script hash.