serai/coins
Justin Berman 079fddbaa6
monero: only mask user features on new polyseed, not on decode (#503)
* monero: only mask user features on new polyseed, not on decode

- This commit ensures a polyseed string that has unsupported features correctly errors on decode (rather than panic in debug build or return an incorrect successful response in prod build)
- Also avoids panicking when checksum calculation is unexpectedly wrong

Polyseed reference impl for feature masking:
- polyseed_create: b7c35bb3c6/src/polyseed.c (L61)
- polyseed_decode: b7c35bb3c6/src/polyseed.c (L212)

* PR comments

* Make from_internal a member of Polyseed

* Add accidentally removed newline

---------

Co-authored-by: Luke Parker <lukeparker5132@gmail.com>
2024-02-19 22:03:02 -05:00
..
bitcoin Redo Dockerfile generation (#530) 2024-02-09 02:48:44 -05:00
ethereum Further expand clippy workspace lints 2023-12-17 00:04:49 -05:00
monero monero: only mask user features on new polyseed, not on decode (#503) 2024-02-19 22:03:02 -05:00