You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
from ecdsa.ellipticcurve import INFINITY, CurveFp, Point, PointJacobi
def multiply_naive(point, a):
ans = point
for i in range(a-1):
ans = ans + point
return ans
curve = CurveFp(p=31, a=2, b=3)
point = Point(curve, 6, 18)
print("point:", point)
print("11*point:", 11*point)
print("11*point (naive):", multiply_naive(point, 11))
print("10*point+point:", 10*point+point)
print("11*point (via Jacobi):", (11*PointJacobi.from_affine(point)).to_affine())
Activity
use simple double and add algorithm in Point
use simple double and add algorithm in Point
tomato42 commentedon Jun 5, 2026
Should be fixed by #374