.
This commit is contained in:
parent
148d537db9
commit
2afece2a22
12
scalarmult.l
Normal file
12
scalarmult.l
Normal file
|
@ -0,0 +1,12 @@
|
|||
#{
|
||||
REFERENCE PYTHON:
|
||||
def scalarmult(P,e):
|
||||
if e == 0: return [0,1]
|
||||
Q = scalarmult(P,e/2)
|
||||
Q = edwards(Q,Q)
|
||||
if e & 1: Q = edwards(Q,P)
|
||||
return Q
|
||||
}#
|
||||
|
||||
(msg 'ok)
|
||||
(bye)
|
Loading…
Reference in a new issue