Skip to content

Commit

Permalink
Add a couple comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
greg7mdp committed Apr 1, 2024
1 parent dde9128 commit 27f2fbd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions include/bls12-381/fp.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
{

Expand Down

0 comments on commit 27f2fbd

Please sign in to comment.