Skip to content

Commit

Permalink
use nfkd to read word in to_entropy
Browse files Browse the repository at this point in the history
  • Loading branch information
nglsena0722 committed Jan 4, 2024
1 parent 161bec3 commit 78279f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mnemonic/mnemonic.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ def to_entropy(self, words: Union[List[str], str]) -> bytearray:
wordindex = 0
for word in words:
# Find the words index in the wordlist
ndx = self.wordlist.index(word)
ndx = self.wordlist.index(self.normalize_string(word))
if ndx < 0:
raise LookupError('Unable to find "%s" in word list.' % word)
# Set the next 11 bits to the value of the index.
Expand Down

0 comments on commit 78279f9

Please sign in to comment.