mirror of https://github.com/zcash/halo2.git
Rename map_to_curve to map_to_curve_simple_swu.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
This commit is contained in:
parent
785ad5375c
commit
6d8c899e16
|
@ -700,13 +700,13 @@ macro_rules! impl_projective_curve_specific {
|
|||
Box::new(move |message| {
|
||||
let mut us = [Field::zero(); 2];
|
||||
hashtocurve::hash_to_field(message, domain_separation_tag.as_bytes(), &mut us);
|
||||
let q0 = hashtocurve::map_to_curve::<$base, $name_affine, $iso_affine>(
|
||||
let q0 = hashtocurve::map_to_curve_simple_swu::<$base, $name_affine, $iso_affine>(
|
||||
&us[0],
|
||||
$name::THETA,
|
||||
$name::Z,
|
||||
$name::B_OVER_ZA,
|
||||
);
|
||||
let q1 = hashtocurve::map_to_curve::<$base, $name_affine, $iso_affine>(
|
||||
let q1 = hashtocurve::map_to_curve_simple_swu::<$base, $name_affine, $iso_affine>(
|
||||
&us[1],
|
||||
$name::THETA,
|
||||
$name::Z,
|
||||
|
|
|
@ -94,7 +94,7 @@ pub fn iso_map<F: FieldExt, C: CurveAffine<Base = F>, I: CurveAffine<Base = F>>(
|
|||
C::Projective::new_jacobian(xo, yo, zo).unwrap()
|
||||
}
|
||||
|
||||
pub fn map_to_curve<F: FieldExt, C: CurveAffine<Base = F>, I: CurveAffine<Base = F>>(
|
||||
pub fn map_to_curve_simple_swu<F: FieldExt, C: CurveAffine<Base = F>, I: CurveAffine<Base = F>>(
|
||||
u: &F,
|
||||
theta: F,
|
||||
z: F,
|
||||
|
|
Loading…
Reference in New Issue