Skip to content

Commit 77af1da

Browse files
Merge #1455: doc: improve secp256k1_fe_set_b32_mod doc
3928b7c doc: improve secp256k1_fe_set_b32_mod doc (Coding Enthusiast) Pull request description: As discussed in #1453 This only changes the `secp256k1_fe_impl_set_b32_mod` comment since I think `secp256k1_fe_set_b32_limit` doc is clear enough. ACKs for top commit: sipa: ACK 3928b7c theStack: ACK 3928b7c Tree-SHA512: ad62c1b72d6a487473b182e6aadc7765711385add8c6576bf15c2015db82721f19e3d635f7a29316c2ee7e3c73bc55e2cd4f46ec13180be93d6fe8641f47e7d2
2 parents 5e9a4d7 + 3928b7c commit 77af1da

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/field.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,8 @@ static int secp256k1_fe_equal(const secp256k1_fe *a, const secp256k1_fe *b);
184184
*/
185185
static int secp256k1_fe_cmp_var(const secp256k1_fe *a, const secp256k1_fe *b);
186186

187-
/** Set a field element equal to a provided 32-byte big endian value, reducing it.
187+
/** Set a field element equal to the element represented by a provided 32-byte big endian value
188+
* interpreted modulo p.
188189
*
189190
* On input, r does not need to be initialized. a must be a pointer to an initialized 32-byte array.
190191
* On output, r = a (mod p). It will have magnitude 1, and not be normalized.

0 commit comments

Comments
 (0)