From 9fbe75f392063fcdd843bd5be3f09ddc5fa77c7a Mon Sep 17 00:00:00 2001 From: Justin Traglia <95511699+jtraglia@users.noreply.github.com> Date: Fri, 24 Mar 2023 08:51:42 -0500 Subject: [PATCH] Move Polynomial type from header to impl (#244) --- src/c_kzg_4844.c | 11 +++++++++++ src/c_kzg_4844.h | 7 ------- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/src/c_kzg_4844.c b/src/c_kzg_4844.c index 9e74007..8172ee0 100644 --- a/src/c_kzg_4844.c +++ b/src/c_kzg_4844.c @@ -44,6 +44,17 @@ (p) = NULL; \ }) +/////////////////////////////////////////////////////////////////////////////// +// Types +/////////////////////////////////////////////////////////////////////////////// + +/** + * Internal representation of a polynomial. + */ +typedef struct { + fr_t evals[FIELD_ELEMENTS_PER_BLOB]; +} Polynomial; + /////////////////////////////////////////////////////////////////////////////// // Constants /////////////////////////////////////////////////////////////////////////////// diff --git a/src/c_kzg_4844.h b/src/c_kzg_4844.h index 9ea28ec..d5a3ace 100644 --- a/src/c_kzg_4844.h +++ b/src/c_kzg_4844.h @@ -62,13 +62,6 @@ typedef blst_p1 g1_t; /**< Internal G1 group element type. */ typedef blst_p2 g2_t; /**< Internal G2 group element type. */ typedef blst_fr fr_t; /**< Internal Fr field element type. */ -/** - * Internal representation of a polynomial. - */ -typedef struct { - fr_t evals[FIELD_ELEMENTS_PER_BLOB]; -} Polynomial; - /** * An array of 32 bytes. Represents an untrusted * (potentially invalid) field element.