From bc7420fcba0c272d23650256e9fea3c12a3abbd3 Mon Sep 17 00:00:00 2001 From: Elliott Jin Date: Mon, 6 Dec 2021 08:54:32 -0800 Subject: [PATCH] doc: Add comment to top of field_10x26_impl.h --- src/field_10x26_impl.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/field_10x26_impl.h b/src/field_10x26_impl.h index 4363e727e7..17c8deb6e8 100644 --- a/src/field_10x26_impl.h +++ b/src/field_10x26_impl.h @@ -11,6 +11,14 @@ #include "field.h" #include "modinv32_impl.h" +/** See the comment at the top of field_5x52_impl.h for more details. + * + * Here, we represent field elements as 10 uint32_t's in base 2^26, where limbs can contain >26 bits. + * A magnitude M means: + * - 2*M*(2^22-1) is the max (inclusive) of the most significant limb + * - 2*M*(2^26-1) is the max (inclusive) of the remaining limbs + */ + #ifdef VERIFY static void secp256k1_fe_verify(const secp256k1_fe *a) { const uint32_t *d = a->n;