1
0
mirror of https://github.com/bitcoin/bips.git synced 2025-05-12 12:03:29 +00:00

fix err has to hash reference.py

This commit is contained in:
futreall 2025-04-03 09:10:20 +03:00 committed by GitHub
parent 7bc88ba4e2
commit a6cbb79a3f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -36,7 +36,7 @@ def get_pubkey_from_input(vin: VinInfo) -> ECPubKey:
if i - 33 >= 0: if i - 33 >= 0:
# starting from the back, we move over the scriptSig with a 33 byte # starting from the back, we move over the scriptSig with a 33 byte
# window (to match a compressed pubkey). we hash this and check if it matches # window (to match a compressed pubkey). we hash this and check if it matches
# the 20 byte has from the scriptPubKey. for standard scriptSigs, this will match # the 20 byte hash from the scriptPubKey. for standard scriptSigs, this will match
# right away because the pubkey is the last item in the scriptSig. # right away because the pubkey is the last item in the scriptSig.
# if its a non-standard (malleated) scriptSig, we will still find the pubkey if its # if its a non-standard (malleated) scriptSig, we will still find the pubkey if its
# a compressed pubkey. # a compressed pubkey.