rename SEED_PREFIX constant

This commit is contained in:
ThomasV 2015-01-21 23:49:31 +01:00
parent 906e0ecd14
commit 2b42f054a9
1 changed files with 1 additions and 1 deletions

View File

@ -147,7 +147,7 @@ class Mnemonic(object):
i = self.mnemonic_decode(seed)
return i % custom_entropy == 0
def make_seed(self, num_bits=128, prefix=version.SEED_BIP44, custom_entropy=1):
def make_seed(self, num_bits=128, prefix=version.SEED_PREFIX, custom_entropy=1):
n = int(math.ceil(math.log(custom_entropy,2)))
# bits of entropy used by the prefix
k = len(prefix)*4