i want sage code for following Double and add algorithm for elliptic curve
N ← P Q ← 0 for i from 0 to m do if di = 1 then Q ← point_add(Q, N) N ← point_double(N) return Q
Looks like a duplicate, see : https://ask.sagemath.org/question/360...