diff --git a/sage/secp256k1_params.sage b/sage/secp256k1_params.sage index 4e00072..68f95ad 100644 --- a/sage/secp256k1_params.sage +++ b/sage/secp256k1_params.sage @@ -9,6 +9,9 @@ C = EllipticCurve([F(0), F(7)]) """Base point of secp256k1""" G = C.lift_x(0x79BE667EF9DCBBAC55A06295CE870B07029BFCDB2DCE28D959F2815B16F81798) +if int(G[1]) & 1: + # G.y is even + G = -G """Prime order of secp256k1""" N = C.order()