move wordlists to wordlist

This commit is contained in:
The MMGen Project 2022-02-10 12:51:42 +00:00
commit 30bd534314
Signed by: mmgen
GPG key ID: 3F8B1861E32B7DA2
9 changed files with 6 additions and 4 deletions

View file

@ -82,7 +82,7 @@ class baseconv(object):
def __init__(self,wl_id): def __init__(self,wl_id):
if wl_id == 'mmgen': if wl_id == 'mmgen':
from .mn_electrum import words from .wordlist.electrum import words
self.constants['digits'][wl_id] = words self.constants['digits'][wl_id] = words
elif wl_id not in self.constants['digits']: elif wl_id not in self.constants['digits']:
raise ValueError(f'{wl_id}: unrecognized mnemonic ID') raise ValueError(f'{wl_id}: unrecognized mnemonic ID')

View file

@ -49,7 +49,7 @@ class bip39(baseconv):
def __init__(self,wl_id='bip39'): def __init__(self,wl_id='bip39'):
assert wl_id == 'bip39', "initialize with 'bip39' for compatibility with baseconv API" 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.digits = words
self.wl_id = 'bip39' self.wl_id = 'bip39'

View file

@ -36,7 +36,7 @@ class xmrseed(baseconv):
def __init__(self,wl_id='xmrseed'): def __init__(self,wl_id='xmrseed'):
assert wl_id == 'xmrseed', "initialize with 'xmrseed' for compatibility with baseconv API" 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.digits = words
self.wl_id = 'xmrseed' self.wl_id = 'xmrseed'

View file

@ -58,6 +58,7 @@ packages =
mmgen.tx mmgen.tx
mmgen.tw mmgen.tw
mmgen.wallet mmgen.wallet
mmgen.wordlist
scripts = scripts =
cmds/mmgen-addrgen cmds/mmgen-addrgen

View file

@ -55,7 +55,8 @@ def overlay_setup(repo_root):
'mmgen.tool', 'mmgen.tool',
'mmgen.tx', 'mmgen.tx',
'mmgen.tw', 'mmgen.tw',
'mmgen.wallet' ): 'mmgen.wallet',
'mmgen.wordlist' ):
process_srcdir(d) process_srcdir(d)
return overlay_dir return overlay_dir