rundown of different scripts and what is what and what goes where.
- the
prevoutScript
is the script of the output being spend - the
redeemScript
is the script that is used to solve the P2SH - the
signatureScript
is the script that is taken into thesignatureHash
for signing - the
witnessRedeemScript
is the script that is used to solve the P2WSH - the
scriptSig
is what goes into theinput.scriptSig
when serializing the TX - the
witnessScript
is what goes into theinput.witness
when serializing the TX