Browse Source

move wordlists to `wordlist`

The MMGen Project 3 years ago
parent
commit
30bd534314

+ 1 - 1
mmgen/baseconv.py

@@ -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')

+ 1 - 1
mmgen/bip39.py

@@ -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'
 

+ 0 - 0
mmgen/mn_bip39.py → mmgen/wordlist/bip39.py


+ 0 - 0
mmgen/mn_electrum.py → mmgen/wordlist/electrum.py


+ 0 - 0
mmgen/mn_monero.py → mmgen/wordlist/monero.py


+ 0 - 0
mmgen/mn_tirosh.py → mmgen/wordlist/tirosh.py


+ 1 - 1
mmgen/xmrseed.py

@@ -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'
 

+ 1 - 0
setup.cfg

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

+ 2 - 1
test/overlay/__init__.py

@@ -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