URI: 
       tsigntransaction: pass pubkey to tx.sign (fix #5522) - electrum - Electrum Bitcoin wallet
  HTML git clone https://git.parazyd.org/electrum
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
       ---
   DIR commit b42009acb751a655cb5a8d0a1503f071b6d166aa
   DIR parent 1d637ef98842c83d315fc5770206e4384e2c4ae5
  HTML Author: ThomasV <thomasv@electrum.org>
       Date:   Wed, 14 Aug 2019 12:49:35 +0200
       
       signtransaction: pass pubkey to tx.sign (fix #5522)
       
       Diffstat:
         M electrum/commands.py                |       6 ++----
       
       1 file changed, 2 insertions(+), 4 deletions(-)
       ---
   DIR diff --git a/electrum/commands.py b/electrum/commands.py
       t@@ -271,10 +271,8 @@ class Commands:
                tx = Transaction(tx)
                if privkey:
                    txin_type, privkey2, compressed = bitcoin.deserialize_privkey(privkey)
       -            pubkey_bytes = ecc.ECPrivkey(privkey2).get_public_key_bytes(compressed=compressed)
       -            h160 = bitcoin.hash_160(pubkey_bytes)
       -            x_pubkey = 'fd' + bh2u(b'\x00' + h160)
       -            tx.sign({x_pubkey:(privkey2, compressed)})
       +            pubkey = ecc.ECPrivkey(privkey2).get_public_key_bytes(compressed=compressed).hex()
       +            tx.sign({pubkey:(privkey2, compressed)})
                else:
                    self.wallet.sign_transaction(tx, password)
                return tx.as_dict()