Trait elliptic_curve::hash2curve::OsswuMap
source · [−]pub trait OsswuMap: Field + Sgn0 {
const PARAMS: OsswuMapParams<Self>;
fn osswu(&self) -> (Self, Self) { ... }
}
Available on crate feature
hash2curve
only.Expand description
The optimized simplified Shallue-van de Woestijne-Ulas method for mapping elliptic curve scalars to affine points.
Required Associated Constants
const PARAMS: OsswuMapParams<Self>
const PARAMS: OsswuMapParams<Self>
The OSSWU parameters for mapping the field to affine points. For Weierstrass curves having A==0 or B==0, the parameters should be for isogeny where A≠0 and B≠0.
Provided Methods
fn osswu(&self) -> (Self, Self)
fn osswu(&self) -> (Self, Self)
Convert this field element into an affine point on the elliptic curve returning (X, Y). For Weierstrass curves having A==0 or B==0 the result is a point on an isogeny.