A Pay-to-Public-Key-Hash (P2PKH) script is a common type of Bitcoin transaction script that allows bitcoins to be sent to a specific Bitcoin address. The script locks the bitcoins to the hash of a public key, requiring a signature from the corresponding private key to spend them. When the bitcoins are spent, the spender provides a scriptSig that includes the public key and a valid signature.
OP_Code(s) Review
P2PKH requires three (3) pieces of data & four (4) op_codes. The three (3) editable data items required are seen below.
Hashed Key
4d412760f4
# UnlockScript/ScriptSig
[signature]
[public-key]
# LockScript/ScriptPubKey
<dup>
<hash160>
[hash160[public-key]]
<equalverify>
<checksig>
Step 1
Push <signature> onto the stack