-
Notifications
You must be signed in to change notification settings - Fork 89
Open
Description
bitcoin-code/txnUtils.py has the following function defined:
# 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"
What is this magic number? -> "1976a914"
Metadata
Metadata
Assignees
Labels
No labels