elliptic_curve/hash2curve/map2curve.rs
1//! Traits for mapping field elements to points on the curve.
2
3/// Trait for converting field elements into a point
4/// via a mapping method like Simplified Shallue-van de Woestijne-Ulas
5/// or Elligator
6pub trait MapToCurve {
7 /// The output point
8 type Output;
9
10 /// Map a field element into a point
11 fn map_to_curve(&self) -> Self::Output;
12}