ZhePang / Python_Specification_for_Schnorr_Adaptor

5 stars 4 forks source link

pre_sign: check is_infinite(R0) immediately #5

Closed siv2r closed 7 months ago

siv2r commented 9 months ago

The has_even_y function already includes a check for infinity points, so there is no need to check for them separately after calling the function. While the program would still be correct if we remove this line, I prefer to keep it for the sake of readability.