From bedaa0055c6a7c55087b946b73f2dd6149d3b52a Mon Sep 17 00:00:00 2001 From: Jack Grigg Date: Thu, 24 Nov 2022 12:14:59 +0000 Subject: [PATCH] Remove unnecessary `FieldExt` bounds in `crate::hashtocurve` --- src/hashtocurve.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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,