This pull requests removes the test-only functions ge_equals_ge
and ge_equals_gej
, and replaces them with proper group.h functions secp256k1_ge_eq_var
and secp256k1_gej_eq_ge_var
(mimicking the existing secp256k1_gej_eq_var
function).
This drops some of the arbitrary and undocumented magnitude restristrictions these functions have, makes them properly tested on their own, and makes their semantics cleaner (I’m always left checking whether ge_equals_ge
does a CHECK
internally or whether it returns a value…).