Skip to content

Commit

Permalink
resolve pr comments
Browse files Browse the repository at this point in the history
  • Loading branch information
maramihali committed Aug 10, 2023
1 parent 28e5000 commit 4180c77
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ class Bn254FqParams {
0x180a96573d3d9f8ULL, 0xf8b21270ddbb927ULL, 0x1d9598e8a7e39857ULL, 0x2ba010aa41eb7786ULL,
};
static constexpr char schema_name[] = "fq";
static constexpr bool has_high_2adicity = false;
};

typedef field<Bn254FqParams> fq;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ class Bn254FrParams {
0x1d9598e8a7e39857ULL, 0x2ba010aa41eb7786ULL, 0x39aa886bdbf356b5ULL, 0x47b5002d75fb35e5ULL,
};
static constexpr char schema_name[] = "fr";
static constexpr bool has_high_2adicity = true;
};

typedef field<Bn254FrParams> fr;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@
#endif

namespace barretenberg {
template <class Params> struct alignas(32) field {
template <class Params_> struct alignas(32) field {
public:
using Params = Params_;
typedef uint8_t const* in_buf;
typedef uint8_t const* vec_in_buf;
typedef uint8_t* out_buf;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#include "verifier.hpp"
#include "../../../transcript/transcript.hpp"
#include "../prover/prover.hpp"
#include "../utils/permutation.hpp"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
#include <span>
namespace barretenberg {
template <typename Fr> class Polynomial {

public:
/**
* Implements requirements of `std::ranges::contiguous_range` and `std::ranges::sized_range`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ namespace barretenberg {
namespace polynomial_arithmetic {

template <typename T>
concept SupportsFFT = std::same_as<T, barretenberg::fr>;
concept SupportsFFT = T::Params::has_high_2adicity;

template <typename Fr> struct LagrangeEvaluations {
Fr vanishing_poly;
Fr l_start;
Expand Down

0 comments on commit 4180c77

Please sign in to comment.