mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-31 17:31:36 +00:00
is_new_seed: encode utf8
This commit is contained in:
parent
0ba73dfc95
commit
23df7394df
1 changed files with 1 additions and 1 deletions
|
@ -71,7 +71,7 @@ def mnemonic_to_seed(mnemonic, passphrase):
|
|||
return PBKDF2(mnemonic, 'mnemonic' + passphrase, iterations = PBKDF2_ROUNDS, macmodule = hmac, digestmodule = hashlib.sha512).read(64)
|
||||
|
||||
from version import SEED_PREFIX
|
||||
is_new_seed = lambda x: hmac_sha_512("Seed version", x).encode('hex')[0:2].startswith(SEED_PREFIX)
|
||||
is_new_seed = lambda x: hmac_sha_512("Seed version", x.encode('utf8')).encode('hex')[0:2].startswith(SEED_PREFIX)
|
||||
|
||||
def is_old_seed(seed):
|
||||
import mnemonic
|
||||
|
|
Loading…
Add table
Reference in a new issue