-
Notifications
You must be signed in to change notification settings - Fork 3
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
Feat/bit decomposition #37
Conversation
Correct comment
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.
@sheagrief Some comments1
mpc-algebra/src/wire/field.rs
Outdated
let mut two_l = BigInteger256::from(1u64); | ||
two_l.muln(l as u32); | ||
|
||
let mut vec_f = two_l; |
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.
can you rename since this is not vec?
mpc-algebra/src/wire/field.rs
Outdated
let mut h = vec_r.bit_add(&g_vec); | ||
|
||
// 6 | ||
h.pop(); // remove the last element |
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.
better to assert h.len() = l+1;
and return h[..l]
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!
Implement the following: