tfix make_seed arguments - electrum - Electrum Bitcoin wallet
HTML git clone https://git.parazyd.org/electrum
DIR Log
DIR Files
DIR Refs
DIR Submodules
---
DIR commit e30a179c974cc2885be37b48d79703935b67eaee
DIR parent 679fc69cf1276475f677b167e365d5ce5563a00c
HTML Author: ThomasV <thomasv@electrum.org>
Date: Wed, 22 Feb 2017 12:54:17 +0100
fix make_seed arguments
Diffstat:
M lib/commands.py | 4 ++--
M lib/mnemonic.py | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
---
DIR diff --git a/lib/commands.py b/lib/commands.py
t@@ -149,10 +149,10 @@ class Commands:
return True
@command('')
- def make_seed(self, nbits=128, entropy=1, language=None):
+ def make_seed(self, nbits=132, entropy=1, language=None):
"""Create a seed"""
from mnemonic import Mnemonic
- s = Mnemonic(language).make_seed(nbits, custom_entropy=entropy)
+ s = Mnemonic(language).make_seed('standard', nbits, custom_entropy=entropy)
return s.encode('utf8')
@command('')
DIR diff --git a/lib/mnemonic.py b/lib/mnemonic.py
t@@ -159,7 +159,7 @@ class Mnemonic(object):
i = self.mnemonic_decode(seed)
return i % custom_entropy == 0
- def make_seed(self, seed_type='standard', num_bits=128, custom_entropy=1):
+ def make_seed(self, seed_type='standard', num_bits=132, custom_entropy=1):
import version
prefix = version.seed_prefix(seed_type)
# increase num_bits in order to obtain a uniform distibution for the last word