aztec-nr - std::embedded_curve_ops

Function embedded_curve_add_unsafe

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

Unsafe ec addition If the inputs are the same, it will perform a doubling, but only if point1 and point2 are the same variable. If they have the same value but are different variables, the result will be incorrect because in this case it assumes (but does not check) that the points' x-coordinates are not equal. It also assumes neither point is the infinity point.