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:
parent
41e39caad1
commit
e991722d9c
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue