commit 2b42f054a954aa7c10cb3f8a4c0cc399bc523104
parent 906e0ecd14dbd6f417f816adafb1fb3d76372824
Author: ThomasV <thomasv@gitorious>
Date: Wed, 21 Jan 2015 23:49:31 +0100
rename SEED_PREFIX constant
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/mnemonic.py b/lib/mnemonic.py
@@ -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