Browse Source

fix #3680 (trezor: spending from multisig)

follow-up of #3621 (Make Electrum work with trezorlib 0.9.0)
3.1
SomberNight 7 years ago
parent
commit
cc9032c9ea
  1. 4
      plugins/trezor/plugin.py

4
plugins/trezor/plugin.py

@ -294,10 +294,10 @@ class TrezorCompatiblePlugin(HW_PluginBase):
s = []
node = self.ckd_public.deserialize(xpub)
return self.types.HDNodePathType(node=node, address_n=s)
pubkeys = map(f, x_pubkeys)
pubkeys = list(map(f, x_pubkeys))
multisig = self.types.MultisigRedeemScriptType(
pubkeys=pubkeys,
signatures=map(lambda x: bfh(x)[:-1] if x else b'', txin.get('signatures')),
signatures=list(map(lambda x: bfh(x)[:-1] if x else b'', txin.get('signatures'))),
m=txin.get('num_sig'),
)
if script_gen == SCRIPT_GEN_NATIVE_SEGWIT:

Loading…
Cancel
Save