Trait ark_ec::hashing::map_to_curve_hasher::MapToCurve
source · pub trait MapToCurve<T: CurveGroup>: Sized {
// Required methods
fn new() -> Result<Self, HashToCurveError>;
fn map_to_curve(
&self,
point: T::BaseField
) -> Result<T::Affine, HashToCurveError>;
}
Expand description
Trait for mapping a random field element to a random curve point.
Required Methods§
sourcefn new() -> Result<Self, HashToCurveError>
fn new() -> Result<Self, HashToCurveError>
Constructs a new mapping.
sourcefn map_to_curve(
&self,
point: T::BaseField
) -> Result<T::Affine, HashToCurveError>
fn map_to_curve( &self, point: T::BaseField ) -> Result<T::Affine, HashToCurveError>
Map an arbitary field element to a corresponding curve point.