ark_test_curves::hashing::map_to_curve_hasher

Trait MapToCurve

Source
pub trait MapToCurve<T>: Sized
where T: CurveGroup,
{ // Required methods fn check_parameters() -> Result<(), HashToCurveError>; fn map_to_curve( point: <T as CurveGroup>::BaseField, ) -> Result<<T as CurveGroup>::Affine, HashToCurveError>; }
Expand description

Trait for mapping a random field element to a random curve point.

Required Methods§

Source

fn check_parameters() -> Result<(), HashToCurveError>

Checks whether supplied parameters represent a valid map.

Source

fn map_to_curve( point: <T as CurveGroup>::BaseField, ) -> Result<<T as CurveGroup>::Affine, HashToCurveError>

Map an arbitrary field element to a corresponding curve point.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§