Skip to content

Conversation

@Snezhkko
Copy link
Contributor

Drop the T: Default bound from hash2curve/src/hash2field.rs::hash_to_field(), since T is only used via Reduce<Array<u8, L>> (T::reduce(&tmp)) and never instantiated with T::default(). The Reduce trait from elliptic_curve::ops does not require Default, and call sites rely solely on reduction from expanded message bytes. This change relaxes the generic constraints without altering behavior or API semantics. The Default bound in hash2curve/src/map2curve.rs is intentionally preserved because mapping implementations construct Array::<FieldElement, N>::default(), which requires FieldElement: Default.

@baloo
Copy link
Member

baloo commented Nov 18, 2025

bot?

@Snezhkko
Copy link
Contributor Author

bot?

alive person

@tarcieri
Copy link
Member

cc @daxpedda

@tarcieri tarcieri merged commit c25a48d into RustCrypto:master Jan 4, 2026
83 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