rename SEED_PREFIX constant
This commit is contained in:
parent
906e0ecd14
commit
2b42f054a9
|
@ -147,7 +147,7 @@ class Mnemonic(object):
|
||||||
i = self.mnemonic_decode(seed)
|
i = self.mnemonic_decode(seed)
|
||||||
return i % custom_entropy == 0
|
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)))
|
n = int(math.ceil(math.log(custom_entropy,2)))
|
||||||
# bits of entropy used by the prefix
|
# bits of entropy used by the prefix
|
||||||
k = len(prefix)*4
|
k = len(prefix)*4
|
||||||
|
|
Loading…
Reference in New Issue