1
0

make add_signature_to_txin an instance method

This commit is contained in:
ThomasV
2018-06-26 13:09:02 +02:00
parent 43c808291f
commit 5a5502303f
3 changed files with 8 additions and 12 deletions

View File

@@ -647,8 +647,7 @@ class DigitalBitbox_KeyStore(Hardware_KeyStore):
sig_s = int(signed['sig'][64:], 16)
sig = ecc.der_sig_from_r_and_s(sig_r, sig_s)
sig = to_hexstr(sig) + '01'
Transaction.add_signature_to_txin(txin, ii, sig)
tx._inputs[i] = txin
tx.add_signature_to_txin(i, ii, sig)
except UserCancelled:
raise
except BaseException as e: