Skip to content

hash2curve: Error rework #1338

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

Merged
merged 40 commits into from
Aug 12, 2025
Merged

hash2curve: Error rework #1338

merged 40 commits into from
Aug 12, 2025

Conversation

carloskiki
Copy link
Contributor

Discussed in #1295. This was planned as a follow up to #1317, but I decided to make it as its own PR because #1317 is not unanimous.

Replaces elliptic_curve::{Error, Result} with an associated type on ExpandMsg.

Copy link
Contributor

@daxpedda daxpedda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just documentation nits at this point.
Otherwise LGTM!

carloskiki and others added 10 commits August 7, 2025 09:39
Co-authored-by: daxpedda <daxpedda@gmail.com>
Co-authored-by: daxpedda <daxpedda@gmail.com>
Co-authored-by: daxpedda <daxpedda@gmail.com>
Co-authored-by: daxpedda <daxpedda@gmail.com>
Co-authored-by: daxpedda <daxpedda@gmail.com>
Co-authored-by: daxpedda <daxpedda@gmail.com>
Co-authored-by: daxpedda <daxpedda@gmail.com>
Copy link
Contributor

@daxpedda daxpedda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

I don't know what RustCrypto's stance is on custom error types is in general, but I think this is a good idea. Otherwise we should at least extract the compile-time error cases as I believe those are a great improvement.

carloskiki and others added 3 commits August 8, 2025 08:27
Co-authored-by: daxpedda <daxpedda@gmail.com>
Co-authored-by: daxpedda <daxpedda@gmail.com>
Co-authored-by: daxpedda <daxpedda@gmail.com>
@tarcieri tarcieri merged commit e73bccf into RustCrypto:master Aug 12, 2025
88 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.

3 participants