pub struct Elligator2Map<P: TECurveConfig>(/* private fields */);Expand description
Represents the Elligator2 hash-to-curve map defined by P.
Trait Implementations§
Source§impl<P: Elligator2Config> MapToCurve<Projective<P>> for Elligator2Map<P>
impl<P: Elligator2Config> MapToCurve<Projective<P>> for Elligator2Map<P>
Source§fn check_parameters() -> Result<(), HashToCurveError>
fn check_parameters() -> Result<(), HashToCurveError>
Checks if P represents a valid Elligator2 map. Panics otherwise.
Source§fn map_to_curve(element: P::BaseField) -> Result<Affine<P>, HashToCurveError>
fn map_to_curve(element: P::BaseField) -> Result<Affine<P>, HashToCurveError>
Map an arbitrary base field element element to a curve point.
Auto Trait Implementations§
impl<P> Freeze for Elligator2Map<P>
impl<P> RefUnwindSafe for Elligator2Map<P>
impl<P> Send for Elligator2Map<P>
impl<P> Sync for Elligator2Map<P>
impl<P> Unpin for Elligator2Map<P>
impl<P> UnwindSafe for Elligator2Map<P>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more