Add Elliptic Curve and docs

This commit is contained in:
2026-02-15 09:14:59 +01:00
parent a8b05c2320
commit 66b5741b28
23 changed files with 2147 additions and 21 deletions
+24
View File
@@ -0,0 +1,24 @@
#!/usr/bin/env python3
import matplotlib.pyplot as plt
from Cryptotools.Groups.curve import Curve
a = 3
b = 8
curve = Curve(a, b, Curve.WEIERSTRASS)
x = curve.x
curve.generatePoints()
y = curve.y
yn = curve.yn
points = curve.getPoints()
#print(x)
#print(y)
plt.figure(figsize=(10, 6))
plt.plot(x, y, color='b', label=f'$y^2 = x^3 + {a}x + {b}$')
plt.plot(x, yn, color='b', )
plt.legend()
plt.show()