diff options
author | Pieter Wuille <pieter@wuille.net> | 2021-12-15 09:19:50 -0500 |
---|---|---|
committer | Pieter Wuille <pieter@wuille.net> | 2021-12-15 09:19:50 -0500 |
commit | dff0596fa0e289b2dfec3b4adbe05e0c14c11d79 (patch) | |
tree | 1631eccfc7023142f2acbbe1162a17af26c35e7a /src/secp256k1/sage | |
parent | b8cc75435a0bcb6c62083ff134b1ba3d2ace50d1 (diff) | |
parent | 86dbc4d075decb82fbba837aaa283cf0561897ad (diff) | |
download | bitcoin-dff0596fa0e289b2dfec3b4adbe05e0c14c11d79.tar.xz |
Update secp256k1 subtree to latest upstream master
Diffstat (limited to 'src/secp256k1/sage')
-rw-r--r-- | src/secp256k1/sage/secp256k1_params.sage | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/secp256k1/sage/secp256k1_params.sage b/src/secp256k1/sage/secp256k1_params.sage index 4e000726ed..68f95adec4 100644 --- a/src/secp256k1/sage/secp256k1_params.sage +++ b/src/secp256k1/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() |