]> Git Repo - secp256k1.git/commitdiff
Update group_impl.h
authorGSongHashrate <[email protected]>
Thu, 17 Sep 2015 21:38:21 +0000 (22:38 +0100)
committerGSongHashrate <[email protected]>
Thu, 17 Sep 2015 21:38:21 +0000 (22:38 +0100)
src/group_impl.h

index 165eba2a525fbcfc0ee2fc30354ea431ce5fdb74..9e746e0a38bb6c1fd088746451af65e733b13050 100644 (file)
@@ -528,7 +528,7 @@ static void secp256k1_gej_add_ge(secp256k1_gej_t *r, const secp256k1_gej_t *a, c
     u1 = a->x; secp256k1_fe_normalize_weak(&u1);        /* u1 = U1 = X1*Z2^2 (1) */
     secp256k1_fe_mul(&u2, &b->x, &zz);                  /* u2 = U2 = X2*Z1^2 (1) */
     s1 = a->y; secp256k1_fe_normalize_weak(&s1);        /* s1 = S1 = Y1*Z2^3 (1) */
-    secp256k1_fe_mul(&s2, &b->y, &zz);                  /* s2 = Y2*Z2^2 (1) */
+    secp256k1_fe_mul(&s2, &b->y, &zz);                  /* s2 = Y2*Z1^2 (1) */
     secp256k1_fe_mul(&s2, &s2, &a->z);                  /* s2 = S2 = Y2*Z1^3 (1) */
     t = u1; secp256k1_fe_add(&t, &u2);                  /* t = T = U1+U2 (2) */
     m = s1; secp256k1_fe_add(&m, &s2);                  /* m = M = S1+S2 (2) */
This page took 0.025205 seconds and 4 git commands to generate.