tcall check_seed in get_seed - electrum - Electrum Bitcoin wallet
 (HTM) git clone https://git.parazyd.org/electrum
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) Submodules
       ---
 (DIR) commit 30934b69db6a5e6ae2059dc09b539c47f1d5549d
 (DIR) parent e4cdc4da0fd49dd7fd4b53ecd8cbb6e94377c26f
 (HTM) Author: ThomasV <thomasv@gitorious>
       Date:   Sat,  9 Nov 2013 08:15:46 +0100
       
       call check_seed in get_seed
       
       Diffstat:
         M lib/account.py                      |       2 +-
         M lib/wallet.py                       |       2 +-
       
       2 files changed, 2 insertions(+), 2 deletions(-)
       ---
 (DIR) diff --git a/lib/account.py b/lib/account.py
       t@@ -106,7 +106,7 @@ class OldAccount(Account):
                curve = SECP256k1
                secexp = self.stretch_key(seed)
                master_private_key = ecdsa.SigningKey.from_secret_exponent( secexp, curve = SECP256k1 )
       -        master_public_key = master_private_key.get_verifying_key().to_string().encode('hex')
       +        master_public_key = master_private_key.get_verifying_key().to_string()
                if master_public_key != self.mpk:
                    print_error('invalid password (mpk)')
                    raise BaseException('Invalid password')
 (DIR) diff --git a/lib/wallet.py b/lib/wallet.py
       t@@ -678,9 +678,9 @@ class Wallet:
                s = pw_decode(self.seed, password)
                if self.seed_version == 4:
                    seed = s
       +            self.accounts[0].check_seed(seed)
                else:
                    seed = mnemonic_hash(s)
       -        #todo:  #self.sequences[0].check_seed(seed)
                return seed