INNER CODE UNIT · Python
__init__
AntonKueltz/fastecdsa · fastecdsa/curve.py:31
def __init__(
self,
name: str,
p: int,
a: int,
b: int,
q: int,
gx: int,
gy: int,
oid: Optional[bytes] = None,
) -> None:
r"""Initialize the parameters of an elliptic curve.
WARNING: Do not generate your own parameters unless you know what you are doing or you could
generate a curve severely less secure than you think. Even then, consider using a
standardized curve for the sake of interoperability.
Currently only curves defined via the equation :math:`y^2 \equiv x^3 + ax + b \pmod{p}` are