-
Notifications
You must be signed in to change notification settings - Fork 1
Refactor 2nd stage #77
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
Conversation
282d82e
to
0f9265c
Compare
UpdateRecent commits resolve the following issues:
|
1. Add documentation for subodules and functions of this module 2. Add debug_assert! for some checks in compile time. 3. Change some function names for better readability
…es the sqrt() and then again ^2 operations, and improve efficiency.`
…committing to. Also, changed the norm bound of matrix_d in common_instances to cover the fact that in our implementation, values of h_ij garbage polynomial are twice the original implementation.
zq, rq, and rq_vector modules include: 1. mod tests for testing arithmatization and operation. 2. mod norm_tests for testing l2 and linf norms. 3. decomposition_tests for testing decomposition.
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.
It looks good generally, though maybe if we unified some of the constant definitions it would be helpful.
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.
LGTM!
Summary
This PR completes the refactoring stage to enhance code efficiency and readability. The following changes have been made:
Norm
trait in thering
module to remove repetetive norm computation functionalities.verifier()
function into smaller functions.Next Steps
calculate_gh_ci_cj()
andcalculate_phi_z_c()
functions.usize
data types withu32
oru64
.check_final_norm_sum()
, which incorrectly compares the norm bound against beta instead of beta'. Currently, using beta' failstest_verify
test case.