ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Sun, 05 Mar 2017 17:27:06 +0100i have implemented algorithm for point addition and point double operation for elliptichttps://ask.sagemath.org/question/36405/i-have-implemented-algorithm-for-point-addition-and-point-double-operation-for-elliptic/i am using above algorithm for scalar multiplication for point add and double operation but it is not working properly.
the following sage math code i am using for scalar multiplication
F= FiniteField(p); #p=5
E = EllipticCurve(F,[A,B]);
print (E.points()[:8])
l = [0, 0, 1,1];l if my scalar is 3 binary of that is (0011)
for i in range(l):
if(i == 1):
load("pointaddition.sage") # Q=Q+P
else :
("load pointdouble.sage") # P=2p
return Q
when i will load pointaddition it will take Q=0 and some random point p and perform point addition so that i will get new value of Q.
it is not working properly please guideFri, 27 Jan 2017 12:51:38 +0100https://ask.sagemath.org/question/36405/i-have-implemented-algorithm-for-point-addition-and-point-double-operation-for-elliptic/Comment by dan_fulea for <p>i am using above algorithm for scalar multiplication for point add and double operation but it is not working properly.
the following sage math code i am using for scalar multiplication </p>
<pre><code>F= FiniteField(p); #p=5
E = EllipticCurve(F,[A,B]);
print (E.points()[:8])
l = [0, 0, 1,1];l if my scalar is 3 binary of that is (0011)
for i in range(l):
if(i == 1):
load("pointaddition.sage") # Q=Q+P
else :
("load pointdouble.sage") # P=2p
return Q
</code></pre>
<p>when i will load pointaddition it will take Q=0 and some random point p and perform point addition so that i will get new value of Q.
it is not working properly please guide</p>
https://ask.sagemath.org/question/36405/i-have-implemented-algorithm-for-point-addition-and-point-double-operation-for-elliptic/?comment=36835#post-id-36835There is an obvious indent error in the if-else block. And we do not know the points to be added, and do not know where is the error while adding them, since load("pointaddition.sage") cannot be accessed on our HD.Sun, 05 Mar 2017 17:27:06 +0100https://ask.sagemath.org/question/36405/i-have-implemented-algorithm-for-point-addition-and-point-double-operation-for-elliptic/?comment=36835#post-id-36835