Skip to content

Commit

Permalink
create_fri_params function updated to the new version from the transp…
Browse files Browse the repository at this point in the history
…iler
  • Loading branch information
nkaskov committed Dec 8, 2023
1 parent 31b0edd commit 76fc1bd
Showing 1 changed file with 8 additions and 14 deletions.
22 changes: 8 additions & 14 deletions bin/proof-generator/include/nil/proof-generator/prover.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -101,22 +101,16 @@ namespace nil {
}

template<typename FRIScheme, typename FieldType>
typename FRIScheme::params_type create_fri_params(std::size_t degree_log, const int max_step = 1) {
typename FRIScheme::params_type params;
nil::crypto3::math::polynomial<typename FieldType::value_type> q = {0, 0, 1};

constexpr std::size_t expand_factor = 0;
typename FRIScheme::params_type create_fri_params(
std::size_t degree_log, const int max_step = 1, std::size_t expand_factor = 0) {
std::size_t r = degree_log - 1;

std::vector<std::shared_ptr<nil::crypto3::math::evaluation_domain<FieldType>>> domain_set =
nil::crypto3::math::calculate_domain_set<FieldType>(degree_log + expand_factor, r);

params.r = r;
params.D = domain_set;
params.max_degree = (1 << degree_log) - 1;
params.step_list = generate_random_step_list(r, max_step);

return params;
return typename FRIScheme::params_type(
(1 << degree_log) - 1, // max_degree
nil::crypto3::math::calculate_domain_set<FieldType>(degree_log + expand_factor, r),
generate_random_step_list(r, max_step),
expand_factor
);
}

} // namespace detail
Expand Down

0 comments on commit 76fc1bd

Please sign in to comment.