Pay-to-Script Hash

The Pay-to-Script Hash (P2SH) process is used to send transactions to a script hash. The addresses to pay using script hash have to start with 3. This is how the script looks:

OP_HASH160 [redeemScriptHash] OP_EQUAL

The signature looks like this:

[Sig]...[Sig][redeemScript]

As with P2PKH, these strings are also concatenated together to create the script signature.