move wordlists to wordlist
This commit is contained in:
parent
0fef35f567
commit
30bd534314
9 changed files with 6 additions and 4 deletions
|
|
@ -82,7 +82,7 @@ class baseconv(object):
|
|||
def __init__(self,wl_id):
|
||||
|
||||
if wl_id == 'mmgen':
|
||||
from .mn_electrum import words
|
||||
from .wordlist.electrum import words
|
||||
self.constants['digits'][wl_id] = words
|
||||
elif wl_id not in self.constants['digits']:
|
||||
raise ValueError(f'{wl_id}: unrecognized mnemonic ID')
|
||||
|
|
|
|||
|
|
@ -49,7 +49,7 @@ class bip39(baseconv):
|
|||
|
||||
def __init__(self,wl_id='bip39'):
|
||||
assert wl_id == 'bip39', "initialize with 'bip39' for compatibility with baseconv API"
|
||||
from .mn_bip39 import words
|
||||
from .wordlist.bip39 import words
|
||||
self.digits = words
|
||||
self.wl_id = 'bip39'
|
||||
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ class xmrseed(baseconv):
|
|||
|
||||
def __init__(self,wl_id='xmrseed'):
|
||||
assert wl_id == 'xmrseed', "initialize with 'xmrseed' for compatibility with baseconv API"
|
||||
from .mn_monero import words
|
||||
from .wordlist.monero import words
|
||||
self.digits = words
|
||||
self.wl_id = 'xmrseed'
|
||||
|
||||
|
|
|
|||
|
|
@ -58,6 +58,7 @@ packages =
|
|||
mmgen.tx
|
||||
mmgen.tw
|
||||
mmgen.wallet
|
||||
mmgen.wordlist
|
||||
|
||||
scripts =
|
||||
cmds/mmgen-addrgen
|
||||
|
|
|
|||
|
|
@ -55,7 +55,8 @@ def overlay_setup(repo_root):
|
|||
'mmgen.tool',
|
||||
'mmgen.tx',
|
||||
'mmgen.tw',
|
||||
'mmgen.wallet' ):
|
||||
'mmgen.wallet',
|
||||
'mmgen.wordlist' ):
|
||||
process_srcdir(d)
|
||||
|
||||
return overlay_dir
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue