Lines Matching refs:wordlist
14 def mnemonic_int_to_words(mint,mint_num_words,wordlist=wordlist_english): argument
15 backwords=[wordlist[(mint >> (11*x)) & 0x7FF].strip() for x in range(mint_num_words)]
25 def entropy_to_words(entbytes,wordlist=wordlist_english): argument
34 return mnemonic_int_to_words(mint,mint_num_words,wordlist)
36 def words_bisect(word,wordlist=wordlist_english): argument
37 lo=bisect_left(wordlist,word)
38 hi=len(wordlist)-bisect_left(wordlist[:lo:-1],word)
42 def words_split(wordstr,wordlist=wordlist_english): argument
43 def popword(wordstr,wordlist): argument
46 lo,hi=words_bisect(w,wordlist)
49 wordlist=wordlist[lo:hi]
55 head,tail=popword(tail,wordlist)
59 def words_to_mnemonic_int(words,wordlist=wordlist_english): argument
61 words=words_split(words,wordlist)
62 return sum([wordlist.index(w) << (11*x) for x,w in enumerate(words[::-1])])
64 def words_verify(words,wordlist=wordlist_english): argument
66 words=words_split(words,wordlist)
68 mint = words_to_mnemonic_int(words,wordlist)
101 def words_mine(prefix,entbits,satisfunction,wordlist=wordlist_english,randombits=random.getrandbits… argument
104 pint=words_to_mnemonic_int(prefix,wordlist)