SomberNight
6 years ago
No known key found for this signature in database
GPG Key ID: B33B5F232C6271E9
4 changed files with
3 additions and
16 deletions
-
electrum/plugins/keepkey/keepkey.py
-
electrum/plugins/safe_t/safe_t.py
-
electrum/plugins/trezor/trezor.py
-
electrum/transaction.py
|
|
@ -345,11 +345,7 @@ class KeepKeyPlugin(HW_PluginBase): |
|
|
|
txinputtype.script_type = self.get_keepkey_input_script_type(txin['type']) |
|
|
|
else: |
|
|
|
def f(x_pubkey): |
|
|
|
if is_xpubkey(x_pubkey): |
|
|
|
xpub, s = parse_xpubkey(x_pubkey) |
|
|
|
else: |
|
|
|
xpub = xpub_from_pubkey(0, bfh(x_pubkey)) |
|
|
|
s = [] |
|
|
|
xpub, s = parse_xpubkey(x_pubkey) |
|
|
|
return self._make_node_path(xpub, s) |
|
|
|
pubkeys = list(map(f, x_pubkeys)) |
|
|
|
multisig = self.types.MultisigRedeemScriptType( |
|
|
|
|
|
@ -354,11 +354,7 @@ class SafeTPlugin(HW_PluginBase): |
|
|
|
txinputtype.script_type = self.get_safet_input_script_type(txin['type']) |
|
|
|
else: |
|
|
|
def f(x_pubkey): |
|
|
|
if is_xpubkey(x_pubkey): |
|
|
|
xpub, s = parse_xpubkey(x_pubkey) |
|
|
|
else: |
|
|
|
xpub = xpub_from_pubkey(0, bfh(x_pubkey)) |
|
|
|
s = [] |
|
|
|
xpub, s = parse_xpubkey(x_pubkey) |
|
|
|
return self._make_node_path(xpub, s) |
|
|
|
pubkeys = list(map(f, x_pubkeys)) |
|
|
|
multisig = self.types.MultisigRedeemScriptType( |
|
|
|
|
|
@ -365,11 +365,7 @@ class TrezorPlugin(HW_PluginBase): |
|
|
|
txinputtype.script_type = self.get_trezor_input_script_type(txin['type']) |
|
|
|
else: |
|
|
|
def f(x_pubkey): |
|
|
|
if is_xpubkey(x_pubkey): |
|
|
|
xpub, s = parse_xpubkey(x_pubkey) |
|
|
|
else: |
|
|
|
xpub = xpub_from_pubkey(0, bfh(x_pubkey)) |
|
|
|
s = [] |
|
|
|
xpub, s = parse_xpubkey(x_pubkey) |
|
|
|
return self._make_node_path(xpub, s) |
|
|
|
pubkeys = list(map(f, x_pubkeys)) |
|
|
|
multisig = self.types.MultisigRedeemScriptType( |
|
|
|
|
|
@ -742,7 +742,6 @@ class Transaction: |
|
|
|
j = pubkeys.index(pubkey_hex) |
|
|
|
print_error("adding sig", i, j, pubkey_hex, sig) |
|
|
|
self.add_signature_to_txin(i, j, sig) |
|
|
|
#self._inputs[i]['x_pubkeys'][j] = pubkey |
|
|
|
break |
|
|
|
# redo raw |
|
|
|
self.raw = self.serialize() |
|
|
|