Skip to content

Commit 1287786

Browse files
committed
doc: Add comment to top of field_10x26_impl.h
1 parent 58da5bd commit 1287786

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/field_10x26_impl.h

+9
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,15 @@
1111
#include "field.h"
1212
#include "modinv32_impl.h"
1313

14+
/** See the comment at the top of field_5x52_impl.h for more details.
15+
*
16+
* Here, we represent field elements as 10 uint32_t's in base 2^26, least significant first,
17+
* where limbs can contain >26 bits.
18+
* A magnitude M means:
19+
* - 2*M*(2^22-1) is the max (inclusive) of the most significant limb
20+
* - 2*M*(2^26-1) is the max (inclusive) of the remaining limbs
21+
*/
22+
1423
#ifdef VERIFY
1524
static void secp256k1_fe_verify(const secp256k1_fe *a) {
1625
const uint32_t *d = a->n;

0 commit comments

Comments
 (0)