1
0

add spanish wordlist and remove accents

This commit is contained in:
ThomasV
2014-09-11 14:20:10 +02:00
parent e7c7dc8cc9
commit 93d073457c
4 changed files with 2074 additions and 16 deletions

View File

@@ -149,6 +149,8 @@ hash_decode = lambda x: x.decode('hex')[::-1]
hmac_sha_512 = lambda x,y: hmac.new(x, y, hashlib.sha512).digest()
def is_new_seed(x, prefix=version.SEED_BIP44):
import mnemonic
x = mnemonic.Mnemonic.prepare_seed(x)
s = hmac_sha_512("Seed version", x.encode('utf8')).encode('hex')
return s.startswith(prefix)