From 27f2fbdaa8c1fb9091c21c9b48b033eae5dc6ebf Mon Sep 17 00:00:00 2001 From: greg7mdp Date: Mon, 1 Apr 2024 19:06:23 -0400 Subject: [PATCH] Add a couple comments. --- include/bls12-381/fp.hpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/bls12-381/fp.hpp b/include/bls12-381/fp.hpp index 5b042e9..7feb0d0 100644 --- a/include/bls12-381/fp.hpp +++ b/include/bls12-381/fp.hpp @@ -11,14 +11,19 @@ namespace bls12_381 { +// config when converting from bytes +// --------------------------------- struct conv_opt { bool check_valid; // check bytes hold a valid encoding bool to_mont; // convert to montgomery form }; +// config when converting to bytes +// ------------------------------- enum class from_mont : uint8_t { no = 0, yes }; // element representation of 'fp' field which is the base field +// ------------------------------------------------------------ class fp {