more vanityonionr changes
parent
b8348be65a
commit
56e86460d1
|
@ -143,7 +143,7 @@ def add_vanity():
|
||||||
try:
|
try:
|
||||||
vanity = vanityonionr.find_multiprocess(words)
|
vanity = vanityonionr.find_multiprocess(words)
|
||||||
except ValueError:
|
except ValueError:
|
||||||
logger.warn('Vanity words must be valid english bip39',
|
logger.warn('Vanity words must be valid niceware',
|
||||||
terminal=True)
|
terminal=True)
|
||||||
else:
|
else:
|
||||||
b32_pub = unpaddedbase32.b32encode(vanity[0])
|
b32_pub = unpaddedbase32.b32encode(vanity[0])
|
||||||
|
|
|
@ -43,7 +43,6 @@ def find_vanity_mnemonic(start_words: str, queue):
|
||||||
check += 1
|
check += 1
|
||||||
else:
|
else:
|
||||||
queue.put(key_pair)
|
queue.put(key_pair)
|
||||||
#print("DONE", check, key_pair)
|
|
||||||
return key_pair
|
return key_pair
|
||||||
|
|
||||||
def _start(start_words, obj):
|
def _start(start_words, obj):
|
||||||
|
@ -79,7 +78,7 @@ def find_multiprocess(start_words: str):
|
||||||
start_words = re.sub(' +', ' ', start_words)
|
start_words = re.sub(' +', ' ', start_words)
|
||||||
test_words = str(start_words)
|
test_words = str(start_words)
|
||||||
|
|
||||||
for word in test_words.split(' '):
|
for word in test_words.split(' '):
|
||||||
for validword in wordlist:
|
for validword in wordlist:
|
||||||
if word == validword:
|
if word == validword:
|
||||||
break
|
break
|
||||||
|
|
Loading…
Reference in New Issue