Closed yorickdowne closed 1 month ago
Not sure what is meant by "hiding it", but happy to get involved in this and do some testing if I have a sample mnemonic.
I tested creating a mnemonic with the Chinese Simplified language and restore it, the public key is the same. So maybe only in certain cases that this issue will manifest
I think this comment here gives a better picture of the overall issue: https://github.com/eth-educators/ethstaker-deposit-cli/pull/142#issuecomment-2340985192
There was a lot of good comments in #142 about this and how to potentially resolve it. Is there still something confusing about how we should go forward with this @valefar-on-discord ? If not, are you good implementing a solution for this issue?
Nothing confusing.
The original bug report is 100% valid and specificly English/French mnemonic languages have some concerning overlap. It seems to be possible for an English mnemonic to be completely overwritten by French and produce a completely different cryptogrpahic result.
The Fix:
I don't believe I have any blockers on handling this besides finding the time but this is my next priority item to look at.
From https://github.com/ethereum/staking-deposit-cli/issues/410
“While going through the code, this code here is causing a problem but hiding it. There are common characters between the 2 word lists and when the map is created in the referenced code, if there is a collision in keys, it is silently overridden to the new file being read. This issue can be seen if the code checks for collision of keys.”
We need to write a test to catch this, and fix the issue.