The short Weierstrass curve $y^2 = x^3 + Ax + B$ over a commutative ring $R$.
Instances For
The affine short Weierstrass curve $y^2 = x^3 + Ax + B$ reduced modulo $n$.
Instances For
A Goldwasser-Kilian primality certificate (Definition 11.14) for a positive integer $p > 1$. It bundles:
- short Weierstrass coefficients $A, B \in \mathbb{Z}$ defining a curve $E$,
- an affine point $(x_1, y_1)$ on $E$,
- an integer $q > (p^{1/4} + 1)^2$,
- a proof that the discriminant $-16(4A^3 + 27B^2)$ is coprime to $p$,
- a proof that the reduction of $(x_1, y_1)$ mod $p$ is nonsingular, and
- a proof that $q \cdot (x_1, y_1) = O$ in $E(\mathbb{Z}/p\mathbb{Z})$ whenever $p$ is prime.
By Theorem 11.13 the existence of such a certificate implies $p$ is prime.
- p : ℤ
- A : ℤ
- B : ℤ
- x₁ : ℤ
- y₁ : ℤ
- q : ℤ
- point_nonsingular : (ECPrimality.curveModN self.p.toNat self.A self.B).Nonsingular ↑self.x₁ ↑self.y₁