From a2c3fa21b0f36966f229db11e5cc97c18f61a7ad Mon Sep 17 00:00:00 2001 From: Ouziel Slama Date: Sat, 7 Dec 2024 12:57:24 +0000 Subject: [PATCH] fix too short der --- counterparty-core/counterpartycore/lib/gettxinfo.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/counterparty-core/counterpartycore/lib/gettxinfo.py b/counterparty-core/counterpartycore/lib/gettxinfo.py index ce9bdb5483..042584e99c 100644 --- a/counterparty-core/counterpartycore/lib/gettxinfo.py +++ b/counterparty-core/counterpartycore/lib/gettxinfo.py @@ -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: