ecc

Elliptic Curve Cryptograpy library from scratch in python.
Log | Files | Refs | README | LICENSE

commit cec3201ca74a71f80c8f2f7477e0fcb672764109
Author: Shivakumar <[email protected]>
Date:   Sat, 24 May 2025 01:32:58 +0530

make the function to plot the curves

Diffstat:
Amain.py | 15+++++++++++++++
1 file changed, 15 insertions(+), 0 deletions(-)

diff --git a/main.py b/main.py @@ -0,0 +1,15 @@ +import matplotlib.pyplot as plt +import numpy as np + + +def plot_curve(a, b): + + y, x = np.ogrid[-10:10:100j, -10:10:100j] + + plt.contour(x.ravel(), y.ravel(), pow(y, 2) - pow(x, 3) - x * a - b, [0]) + plt.grid() + plt.show() + + +if __name__ == "__main__": + plot_curve(0, 7)