-
Notifications
You must be signed in to change notification settings - Fork 18
chore: update more dependencies #145
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
Conversation
kevinlewi
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apologies for the delays in reviewing this!
Mostly looks good, but sending back to changes to eliminate the panic in random_scalar.
src/group/ristretto.rs
Outdated
| let mut scalar_bytes = [0u8; 32]; | ||
| rng.fill_bytes(&mut scalar_bytes); | ||
| rng.try_fill_bytes(&mut scalar_bytes) | ||
| .expect("RNG failure while filling scalar bytes"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should avoid adding this panic here and instead change the random_scalar API to return a Result.
| /// Adapter allowing `rand_core 0.9` RNGs to satisfy the `elliptic_curve` 0.13 | ||
| /// requirement for `rand_core 0.6` traits. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mainly a note to self when merging: we should add a tracking issue to remove this once we upgrade to the elliptic_curve version that uses rand_core 0.9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I filed #150.
kevinlewi
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great. Thank you for making the changes! Merging...
Updates the remaining dependencies and introduces a compatibility layer for
elliptic_curve.