HashToCurveCPU

Trait HashToCurveCPU 

pub trait HashToCurveCPU<C, Input>
where C: CircuitCurve,
{ // Required method fn hash_to_curve( inputs: &[Input], ) -> <C as CircuitCurve>::CryptographicGroup; }
Expand description

Off-circuit instructions for hashing a given input of type Input into a point of curve C.

Required Methods§

fn hash_to_curve(inputs: &[Input]) -> <C as CircuitCurve>::CryptographicGroup

Hash the given input into a point on the curve.

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§

§

impl<F, C, I, H, E> HashToCurveCPU<C, <I as InnerValue>::Element> for HashToCurveGadget<F, C, I, H, E>
where F: PrimeField, C: CircuitCurve + MapToCurveCPU<C>, I: InnerValue, H: SpongeInstructions<F, I, <E as EccInstructions<F, C>>::Coordinate>, E: EccInstructions<F, C> + MapToCurveInstructions<F, C>,