Skip to content

Commit fafa3ed

Browse files
committed
Improve safety docs for NoInvalidPoints trait
Signed-off-by: maurges <nikita@dfns.co>
1 parent c3d187e commit fafa3ed

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

generic-ec-core/src/lib.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -252,8 +252,8 @@ pub trait Reduce<const N: usize> {
252252
/// Marker trait for curves whose underlying implementation doesn't allow
253253
/// representing invalid points.
254254
/// # Safety
255-
/// Safe to implement when the checks in `generic_ec::TryFromRaw` would always
256-
/// return 1 for any point. Those checks are:
257-
/// - `point.is_on_curve()`
258-
/// - `point.is_torsion_free()`
255+
/// Safe to implement when the checks for invalid points always return `true`.
256+
/// Those checks are:
257+
/// - [`OnCurve::is_on_curve`]
258+
/// - [`SmallFactor::is_torsion_free`]
259259
pub unsafe trait NoInvalidPoints {}

0 commit comments

Comments
 (0)