mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-09-01 09:45:18 +00:00
rename SEED_PREFIX constant
This commit is contained in:
parent
906e0ecd14
commit
2b42f054a9
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue