diff --git a/src/hashtocurve.rs b/src/hashtocurve.rs index c5b9a45..1f8fd90 100644 --- a/src/hashtocurve.rs +++ b/src/hashtocurve.rs @@ -1,6 +1,7 @@ //! This module implements "simplified SWU" hashing to short Weierstrass curves //! with a = 0. +use ff::{Field, PrimeField}; use static_assertions::const_assert; use subtle::ConstantTimeEq; @@ -77,7 +78,7 @@ pub fn hash_to_field( } /// Implements a degree 3 isogeny map. -pub fn iso_map, I: CurveExt>( +pub fn iso_map, I: CurveExt>( p: &I, iso: &[C::Base; 13], ) -> C { @@ -105,7 +106,7 @@ pub fn iso_map, I: CurveExt>( } #[allow(clippy::many_single_char_names)] -pub fn map_to_curve_simple_swu, I: CurveExt>( +pub fn map_to_curve_simple_swu, I: CurveExt>( u: &F, theta: F, z: F,