Skip to content

Commit bc7420f

Browse files
committed
doc: Add comment to top of field_10x26_impl.h
1 parent f5aefed commit bc7420f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/field_10x26_impl.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,14 @@
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, where limbs can contain >26 bits.
17+
* A magnitude M means:
18+
* - 2*M*(2^22-1) is the max (inclusive) of the most significant limb
19+
* - 2*M*(2^26-1) is the max (inclusive) of the remaining limbs
20+
*/
21+
1422
#ifdef VERIFY
1523
static void secp256k1_fe_verify(const secp256k1_fe *a) {
1624
const uint32_t *d = a->n;

0 commit comments

Comments
 (0)