# Substitutes the scriptPubKey into the transaction, appends SIGN_ALL to make the version
# of the transaction that can be signed
def getSignableTxn(parsed):
first, sig, pub, rest = parsed
inputAddr = utils.base58CheckDecode(keyUtils.pubKeyToAddr(pub))
return first + "1976a914" + inputAddr.encode('hex') + "88ac" + rest + "01000000"
bitcoin-code/txnUtils.py has the following function defined:
What is this magic number? ->
"1976a914"