call check_seed in get_seed

This commit is contained in:
ThomasV 2013-11-09 08:15:46 +01:00
parent e4cdc4da0f
commit 30934b69db
2 changed files with 2 additions and 2 deletions

View file

@ -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')

View file

@ -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