Skip to content

Commit 308aae0

Browse files
authored
use nfkd to read word in to_entropy (#122)
1 parent 161bec3 commit 308aae0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mnemonic/mnemonic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ def to_entropy(self, words: Union[List[str], str]) -> bytearray:
141141
wordindex = 0
142142
for word in words:
143143
# Find the words index in the wordlist
144-
ndx = self.wordlist.index(word)
144+
ndx = self.wordlist.index(self.normalize_string(word))
145145
if ndx < 0:
146146
raise LookupError('Unable to find "%s" in word list.' % word)
147147
# Set the next 11 bits to the value of the index.

0 commit comments

Comments
 (0)