Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
group: remove unneeded normalize_weak in
secp256k1_ge_is_valid_var
After calculating the right-hand side of the elliptic curve equation (x^3 + 7), the field element `x3` has a magnitude of 2 (1 as result of `secp256k1_fe_mul`, then increased by 1 due to `secp256k1_fe_add_int`). This is fine for `secp256k1_fe_equal_var`, as the second parameter only requires the magnitude to not exceed 31, and the normalize_weak call can hence be dropped.
- Loading branch information