aztec-nr - std::embedded_curve_ops

Function embedded_curve_add

pub fn embedded_curve_add(
    point1: EmbeddedCurvePoint,
    point2: EmbeddedCurvePoint,
) -> EmbeddedCurvePoint

Elliptic curve addition IMPORTANT: this function is expected to perform a full addition in order to handle all corner cases:

  • points on the curve
  • point doubling
  • point at infinity As a result, you may not get optimal performance, depending on the assumptions of your inputs.