mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-31 09:21:39 +00:00
call check_seed in get_seed
This commit is contained in:
parent
e4cdc4da0f
commit
30934b69db
2 changed files with 2 additions and 2 deletions
|
@ -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')
|
||||
|
|
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue