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§

source

fn new() -> Result<Self, HashToCurveError>

Constructs a new mapping.

source

fn map_to_curve( &self, point: T::BaseField ) -> Result<T::Affine, HashToCurveError>

Map an arbitary field element to a corresponding curve point.

Implementors§