pub struct WBMap<P: WBParams> { /* private fields */ }
Trait Implementations
sourceimpl<P: WBParams> MapToCurve<Projective<P>> for WBMap<P>
impl<P: WBParams> MapToCurve<Projective<P>> for WBMap<P>
sourcefn new() -> Result<Self, HashToCurveError>
fn new() -> Result<Self, HashToCurveError>
Constructs a new map if P
represents a valid map.
sourcefn 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
Auto Trait Implementations
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more