URI: 
       tmove sign_transaction - electrum - Electrum Bitcoin wallet
  HTML git clone https://git.parazyd.org/electrum
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
       ---
   DIR commit 1d1da0e1dcf337ba08aa64ddace1694051c2c67e
   DIR parent d471d4b9056f3a720b96f27935e0346d8b2fd4c7
  HTML Author: ThomasV <thomasv@electrum.org>
       Date:   Sun, 28 Aug 2016 22:14:37 +0200
       
       move sign_transaction
       
       Diffstat:
         M lib/keystore.py                     |      18 +++++++++---------
       
       1 file changed, 9 insertions(+), 9 deletions(-)
       ---
   DIR diff --git a/lib/keystore.py b/lib/keystore.py
       t@@ -70,6 +70,15 @@ class Software_KeyStore(KeyStore):
                decrypted = ec.decrypt_message(message)
                return decrypted
        
       +    def sign_transaction(self, tx, password):
       +        # Raise if password is not correct.
       +        self.check_password(password)
       +        # Add private keys
       +        keypairs = self.get_keypairs_for_sig(tx, password)
       +        # Sign
       +        if keypairs:
       +            tx.sign(keypairs)
       +
        
        class Imported_KeyStore(Software_KeyStore):
            # keystore for imported private keys
       t@@ -290,15 +299,6 @@ class BIP32_KeyStore(Deterministic_KeyStore, Xpub):
        
                return keypairs
        
       -    def sign_transaction(self, tx, password):
       -        # Raise if password is not correct.
       -        self.check_password(password)
       -        # Add private keys
       -        keypairs = self.get_keypairs_for_sig(tx, password)
       -        # Sign
       -        if keypairs:
       -            tx.sign(keypairs)
       -
            def get_mnemonic(self, password):
                return self.get_seed(password)