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: require seed lang when decoding seed #502

Merged
merged 2 commits into from
Jan 4, 2024

Conversation

j-berman
Copy link
Contributor

@j-berman j-berman commented Jan 3, 2024

- Require the seed language when decoding a Classic|Polyseed seed string
	- As per monero-project/monero#9089 and tevador/polyseed#11
	- Fixes serai-dex#478
	- Implementation note: I reused the `SeedType` enum and required it as a param to `Seed::from_string` because it seemed simplest, but perhaps there is a cleaner way to require the seed lang.
- Made sure the print statements from serai-dex#487 print the seed as early as possible to help debug future issues
- A future PR could support deducing which languages a seed decodes to in order to support the UX @kayabaNerve suggested in monero-project/monero#9089:
	- "Wallets can also try to abstract [language specification], by decoding with all languages, and only asking the user if/when multiple valid options show up ("Is this seed Spanish or Italian?")."
@kayabaNerve
Copy link
Member

Full stack failure due to underlying issue fixed in #501.

@kayabaNerve kayabaNerve merged commit 265261d into serai-dex:develop Jan 4, 2024
15 of 16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Monero seed test failed in CI
2 participants