TREZOR: Remove sighash from input signatures

TREZOR firmware expects signatures not to contain the trailing sighash
byte.  This fixes issue fyookball/electrum#47 which also applies to
electrum.
This commit is contained in:
Jochen Hoenicke 2017-08-04 10:56:06 +02:00
parent 41e39caad1
commit e991722d9c
No known key found for this signature in database
GPG Key ID: EB17C6B5E51193F5
1 changed files with 1 additions and 1 deletions

View File

@ -281,7 +281,7 @@ class TrezorCompatiblePlugin(HW_PluginBase):
pubkeys = map(f, x_pubkeys)
multisig = self.types.MultisigRedeemScriptType(
pubkeys=pubkeys,
signatures=map(lambda x: x.decode('hex') if x else '', txin.get('signatures')),
signatures=map(lambda x: x.decode('hex')[:-1] if x else '', txin.get('signatures')),
m=txin.get('num_sig'),
)
txinputtype = self.types.TxInputType(