Skip to content

Commit 3ea59d8

Browse files
group: Add missing declarations to internal header
1 parent a4f5454 commit 3ea59d8

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

src/group.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ typedef struct {
2121

2222
#define SECP256K1_GE_CONST(a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p) {SECP256K1_FE_CONST((a),(b),(c),(d),(e),(f),(g),(h)), SECP256K1_FE_CONST((i),(j),(k),(l),(m),(n),(o),(p)), 0}
2323
#define SECP256K1_GE_CONST_INFINITY {SECP256K1_FE_CONST(0, 0, 0, 0, 0, 0, 0, 0), SECP256K1_FE_CONST(0, 0, 0, 0, 0, 0, 0, 0), 1}
24+
static const secp256k1_ge secp256k1_ge_const_g;
2425

2526
/** A group element of the secp256k1 curve, in jacobian coordinates.
2627
* Note: For exhastive test mode, secp256k1 is replaced by a small subgroup of a different curve.
@@ -87,6 +88,12 @@ static void secp256k1_ge_set_all_gej(secp256k1_ge *r, const secp256k1_gej *a, si
8788
/** Set group elements r[0:len] (affine) equal to group elements a[0:len] (jacobian). */
8889
static void secp256k1_ge_set_all_gej_var(secp256k1_ge *r, const secp256k1_gej *a, size_t len);
8990

91+
/** Set a group element (affine) equal to the group element with jacobian coordinates (a.x, a.y, 1/zi). */
92+
static void secp256k1_ge_set_gej_zinv(secp256k1_ge *r, const secp256k1_gej *a, const secp256k1_fe *zi);
93+
94+
/** Set a group element (affine) equal to the group element with jacobian coordinates (a.x, a.y, 1/zi). */
95+
static void secp256k1_ge_set_ge_zinv(secp256k1_ge *r, const secp256k1_ge *a, const secp256k1_fe *zi);
96+
9097
/** Bring a batch of inputs to the same global z "denominator", based on ratios between
9198
* (omitted) z coordinates of adjacent elements.
9299
*

src/group_impl.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@ static void secp256k1_gej_verify(const secp256k1_gej *a) {
9595
(void)a;
9696
}
9797

98-
/* Set r to the affine coordinates of Jacobian point (a.x, a.y, 1/zi). */
9998
static void secp256k1_ge_set_gej_zinv(secp256k1_ge *r, const secp256k1_gej *a, const secp256k1_fe *zi) {
10099
secp256k1_fe zi2;
101100
secp256k1_fe zi3;
@@ -112,7 +111,6 @@ static void secp256k1_ge_set_gej_zinv(secp256k1_ge *r, const secp256k1_gej *a, c
112111
SECP256K1_GE_VERIFY(r);
113112
}
114113

115-
/* Set r to the affine coordinates of Jacobian point (a.x, a.y, 1/zi). */
116114
static void secp256k1_ge_set_ge_zinv(secp256k1_ge *r, const secp256k1_ge *a, const secp256k1_fe *zi) {
117115
secp256k1_fe zi2;
118116
secp256k1_fe zi3;

0 commit comments

Comments
 (0)