Skip to content

Conversation

@raphaelrobert
Copy link
Contributor

Updates the remaining dependencies and introduces a compatibility layer for elliptic_curve.

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Nov 4, 2025
@kevinlewi kevinlewi mentioned this pull request Nov 5, 2025
Copy link
Contributor

@kevinlewi kevinlewi left a 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.

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");
Copy link
Contributor

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.

Comment on lines +128 to +129
/// Adapter allowing `rand_core 0.9` RNGs to satisfy the `elliptic_curve` 0.13
/// requirement for `rand_core 0.6` traits.
Copy link
Contributor

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I filed #150.

Copy link
Contributor

@kevinlewi kevinlewi left a 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...

@kevinlewi kevinlewi merged commit a22d46f into facebook:main Jan 25, 2026
29 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants