Closed vtexier closed 2 years ago
I suspect there is an issue with the multi-byte representation of the mnemonic above, because the mnemonic below works and seems the same, but is a different representation byte-wise:
def test_create_mnemonic_multi_lang(self):
mnemonic_path = "nation armure tympan devancer temporel capsule ogive médecin acheter narquois abrasif brasier"
keypair = Keypair.create_from_uri(mnemonic_path, language_code=MnemonicLanguageCode.FRENCH)
self.assertNotEqual(keypair, None)
I will have to look into a way to convert the multi-byte string to be usable in both scenarios.
Version: 1.2.4
Keypair.create_from_uri()
raise an exception on french mnemonic.It seems that the regexp does not handle french special characters.
So I added a test in my local repo to confirm and the test raise an exception on french only, chinese is ok: