From 2691d4b60c36fbabcb7fb9c9f8bb5e105d91a904 Mon Sep 17 00:00:00 2001 From: Henry de Valence Date: Fri, 19 Apr 2019 12:58:47 -0700 Subject: [PATCH] Move comment inside function --- internal/edwards25519/edwards25519.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/edwards25519/edwards25519.go b/internal/edwards25519/edwards25519.go index 678b656..7a68443 100644 --- a/internal/edwards25519/edwards25519.go +++ b/internal/edwards25519/edwards25519.go @@ -114,8 +114,8 @@ func (v *ExtendedGroupElement) Add(p1, p2 *ExtendedGroupElement) *ExtendedGroupE return v } -// This is the same function as above, but with X2, T2 negated to X2'=-X2, T2'=-T2 func (v *ExtendedGroupElement) Sub(p1, p2 *ExtendedGroupElement) *ExtendedGroupElement { + // This is the same function as above, but with X2, T2 negated to X2'=-X2, T2'=-T2 var tmp1, tmp2, A, B, C, D, E, F, G, H radix51.FieldElement tmp1.Sub(&p1.Y, &p1.X) // tmp1 <-- Y1-X1 tmp2.Add(&p2.Y, &p2.X) // tmp2 <-- Y2+X2 = Y2-X2'