pub struct WBMap<P>where
P: WBConfig,{ /* private fields */ }
Trait Implementations§
Source§impl<P> MapToCurve<Projective<P>> for WBMap<P>where
P: WBConfig,
impl<P> MapToCurve<Projective<P>> for WBMap<P>where
P: WBConfig,
Source§fn check_parameters() -> Result<(), HashToCurveError>
fn check_parameters() -> Result<(), HashToCurveError>
Checks if P
represents a valid map.
Source§fn map_to_curve(
element: <Affine<P> as AffineRepr>::BaseField,
) -> Result<Affine<P>, HashToCurveError>
fn map_to_curve( 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
Auto Trait Implementations§
impl<P> Freeze for WBMap<P>
impl<P> RefUnwindSafe for WBMap<P>
impl<P> Send for WBMap<P>
impl<P> Sync for WBMap<P>
impl<P> Unpin for WBMap<P>
impl<P> UnwindSafe for WBMap<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