1
0

enable bip32

This commit is contained in:
ThomasV
2014-01-29 17:12:08 +01:00
parent 1c35e15de7
commit 9218175301
3 changed files with 22 additions and 28 deletions

View File

@@ -61,6 +61,8 @@ hash_decode = lambda x: x.decode('hex')[::-1]
hmac_sha_512 = lambda x,y: hmac.new(x, y, hashlib.sha512).digest()
mnemonic_hash = lambda x: hmac_sha_512("Bitcoin mnemonic", x).encode('hex')
from version import SEED_PREFIX
is_seed = lambda x: hmac_sha_512("Seed version", x).encode('hex')[0:2].startswith(SEED_PREFIX)
# pywallet openssl private key implementation