aztec-nr - noir_aztec::utils::point

Function point_from_x_coord

pub fn point_from_x_coord(x: Field) -> Option<EmbeddedCurvePoint>

Returns a Point in the Grumpkin curve given its x coordinate.

Because not all values in the field are valid x coordinates of points in the curve (i.e. there is no corresponding y value in the field that satisfies the curve equation), it may not be possible to reconstruct a Point. Option::none() is returned in such cases.