From 78279f9e7452fe39ff37c449e2719af263514b63 Mon Sep 17 00:00:00 2001 From: nglsena0722 Date: Thu, 4 Jan 2024 20:19:47 +0900 Subject: [PATCH] use nfkd to read word in to_entropy --- src/mnemonic/mnemonic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mnemonic/mnemonic.py b/src/mnemonic/mnemonic.py index 9457f9d..2896773 100644 --- a/src/mnemonic/mnemonic.py +++ b/src/mnemonic/mnemonic.py @@ -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.