utils/curve25519.sage: Remove redundant coercion to field k.
[catacomb] / utils / curve25519.sage
index f5375a7..6fa3cd3 100644 (file)
@@ -267,7 +267,7 @@ assert x25519(x, Y[0]) == x25519(y, X[0]) == Z[0]
 ### Edwards curve parameters and conversion.
 
 a = k(-1)
-d = k(-A0/(A0 + 1))
+d = -A0/(A0 + 1)
 
 def mont_to_ed(u, v):
   return sqrt(-A - 2)*u/v, (u - 1)/(u + 1)