-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
42 dfri recursive component #66
Conversation
row++; | ||
} | ||
|
||
std::vector<std::pair<std::size_t, std::size_t>> ordered_eval_map; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Move it to constructor
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moved to dFRI component constructor
witnesses.push_back(component.W(i)); | ||
} | ||
|
||
dfri_linear_check_component_type dfri_linear_check_instance = dfri_linear_check_component_type(witnesses, std::array<std::uint32_t, 1>(), std::array<std::uint32_t, 0>(), ordered_eval_map.size(), ordered_eval_map); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Move component instance constructor to dFRI verifier constructor
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moved to dFRI component constructor
x_indices.push_back(x_index_output.b0); | ||
} | ||
|
||
std::vector<var> negative_xs; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is no need to use lambda rows for it.
Place pairs {x, -x} horizontally
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
flexible_negate component created for this part
const auto &constant_pow2_instance = component.constant_pow2_instance; | ||
const auto &x_index_instance = component.x_index_instance; | ||
const auto &colinear_checks_instance = component.colinear_checks_instance; | ||
// const auto &dfri_linear_check_instance = component.dfri_linear_check_instance; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is it commented?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
uncommented
x_indices.push_back(x_index_output.b0); | ||
} | ||
|
||
std::vector<var> negative_xs; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same with similar comment in generate_assignments.
Place pairs horizontally
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
flexible_negate component added for this operation
row++; | ||
} | ||
|
||
std::vector<std::pair<std::size_t, std::size_t>> ordered_eval_map; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need in code duplication. Move to constructor.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moved to dFRI component constructor
witnesses.push_back(component.W(i)); | ||
} | ||
|
||
dfri_linear_check_component_type dfri_linear_check_instance = dfri_linear_check_component_type(witnesses, std::array<std::uint32_t, 1>(), std::array<std::uint32_t, 0>(), ordered_eval_map.size(), ordered_eval_map); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Move to dFRI component constructor
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moved to dFRI component constructor
No description provided.