INNER CODE UNIT · Python
G
AntonKueltz/fastecdsa · fastecdsa/curve.py:127
def G(self) -> Point:
"""The base point of the curve.
For the purposes of ECDSA this point is multiplied by a private key to obtain the
corresponding public key. Make a property to avoid cyclic dependency of Point on Curve
(a point lies on a curve) and Curve on Point (curves have a base point).
"""
from .point import Point
return Point(self.gx, self.gy, self)
# see https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-186-draft.pdf
# Section 4.2.1 "Weierstrass Curves" for params
P192 = Curve(
"P192",
6277101735386680763835789423207666416083908700390324961279,
-3,