electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit 30934b69db6a5e6ae2059dc09b539c47f1d5549d
parent e4cdc4da0fd49dd7fd4b53ecd8cbb6e94377c26f
Author: ThomasV <thomasv@gitorious>
Date:   Sat,  9 Nov 2013 08:15:46 +0100

call check_seed in get_seed

Diffstat:
Mlib/account.py | 2+-
Mlib/wallet.py | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/account.py b/lib/account.py @@ -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') diff --git a/lib/wallet.py b/lib/wallet.py @@ -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