Struct ark_test_curves::hashing::curve_maps::swu::SWUMap
source · pub struct SWUMap<P>(_)
where
P: SWUConfig;
Expand description
Represents the SWU hash-to-curve map defined by P
.
Trait Implementations§
source§impl<P> MapToCurve<Projective<P>> for SWUMap<P>where
P: SWUConfig,
impl<P> MapToCurve<Projective<P>> for SWUMap<P>where P: SWUConfig,
source§fn new() -> Result<SWUMap<P>, HashToCurveError>
fn new() -> Result<SWUMap<P>, HashToCurveError>
Constructs a new map if P
represents a valid map.
source§fn map_to_curve(
&self,
point: <P as CurveConfig>::BaseField
) -> Result<Affine<P>, HashToCurveError>
fn map_to_curve( &self, point: <P as CurveConfig>::BaseField ) -> Result<Affine<P>, HashToCurveError>
Map an arbitrary base field element to a curve point. Based on https://github.com/zcash/pasta_curves/blob/main/src/hashtocurve.rs.