I created a mnemonic word using the to_mnemonic function of the module you created. However, I entered the mnemonic word as a parameter of the to_entropy function to regenerate a private key again later, but got a ValueError: myword is not in list.
As it turns out, the environment in which I type the mnemonic words used NFC method, and the module you created used the word in the NFKD method. Therefore, when reading the word in the to_entropy function, I suggest that it is always normalized with the NFKD method through the normalize_string function.
I created a mnemonic word using the
to_mnemonic
function of the module you created. However, I entered the mnemonic word as a parameter of theto_entropy
function to regenerate a private key again later, but got aValueError: myword is not in list
.As it turns out, the environment in which I type the mnemonic words used
NFC
method, and the module you created used the word in theNFKD
method. Therefore, when reading the word in theto_entropy
function, I suggest that it is always normalized with theNFKD
method through thenormalize_string
function.Thanks for reading this.