pub struct WBMap<P: WBConfig> { /* private fields */ }
Trait Implementations§
source§impl<P: WBConfig> MapToCurve<Projective<P>> for WBMap<P>
impl<P: WBConfig> MapToCurve<Projective<P>> for WBMap<P>
source§fn new() -> Result<Self, HashToCurveError>
fn new() -> Result<Self, HashToCurveError>
Constructs a new map if P
represents a valid map.
source§fn map_to_curve(
&self,
element: <Affine<P> as AffineRepr>::BaseField
) -> Result<Affine<P>, HashToCurveError>
fn map_to_curve( &self, element: <Affine<P> as AffineRepr>::BaseField ) -> Result<Affine<P>, HashToCurveError>
Map random field point to a random curve point inspired from https://github.com/zcash/pasta_curves/blob/main/src/hashtocurve.rs