Skip to content

Commit

Permalink
fix too short der
Browse files Browse the repository at this point in the history
  • Loading branch information
Ouziel committed Dec 7, 2024
1 parent 487a0a6 commit a2c3fa2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions counterparty-core/counterpartycore/lib/gettxinfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,8 @@ def get_vin_info(vin):
def get_der_signature_sighash_flag(value):
if not isinstance(value, bytes):
return None
if value.startswith(binascii.unhexlify("3042")) and len(value) == 69:
return value[-1:]
if value.startswith(binascii.unhexlify("3043")) and len(value) == 70:
return value[-1:]
if value.startswith(binascii.unhexlify("3044")) and len(value) == 71:
Expand Down

0 comments on commit a2c3fa2

Please sign in to comment.