Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

monero: if seed checksum fails, keep trying more languages #490

Closed
wants to merge 1 commit into from

Conversation

j-berman
Copy link
Contributor

@j-berman j-berman commented Dec 16, 2023

Fixes #478

The Spanish seed I included in this PR has the same prefixes as words from the English list. This could cause the language matcher to think the seed is in english, and then fail the checksum.

The solution in this PR matches the monero repo's behavior (notice the for loop continues on checksum fail: https://github.com/monero-project/monero/blob/ac02af92867590ca80b2779a7bbeafa99ff94dcb/src/mnemonics/electrum-words.cpp#L154)

@kayabaNerve
Copy link
Member

ACK code changes.

NACK test changes.

You explicitly should not remove an existing vector. Please add new vectors for the multiple faulty seeds you observed.

Removing those print statements sets us up to repeat a situation with lack of logging. They should not be removed. You noted they panicked and were accordingly ineffective. Please fix them, don't remove them.

@kayabaNerve
Copy link
Member

kayabaNerve commented Dec 20, 2023

Per monero-project/monero#9089, we need to rip out these code changes and the code it changed for explicitly specifying the language. Please say RIP and appreciate the glorious negative LoC delta.

@j-berman
Copy link
Contributor Author

j-berman commented Jan 3, 2024

Closing in favor of #502

@j-berman j-berman closed this Jan 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working monero An issue with the Monero library/integration
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Monero seed test failed in CI
2 participants