serai/coins/monero/src/wallet/seed
Justin Berman 265261d3ba
monero: require seed lang when decoding seed (#502)
* monero: require seed lang when decoding seed

- Require the seed language when decoding a Classic|Polyseed seed string
	- As per https://github.com/monero-project/monero/issues/9089 and https://github.com/tevador/polyseed/issues/11
	- Fixes #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 #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 https://github.com/monero-project/monero/issues/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?")."

* Lint
2024-01-04 01:32:42 -05:00
..
classic Move json word lists to rs 2023-04-23 22:26:05 -04:00
polyseed add polyseed support (#257) 2023-07-16 07:25:17 -04:00
classic.rs monero: require seed lang when decoding seed (#502) 2024-01-04 01:32:42 -05:00
mod.rs monero: require seed lang when decoding seed (#502) 2024-01-04 01:32:42 -05:00
polyseed.rs monero: require seed lang when decoding seed (#502) 2024-01-04 01:32:42 -05:00