Skip to content
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

Merged
merged 6 commits into from
Mar 26, 2024
Merged

Feat/bit decomposition #37

merged 6 commits into from
Mar 26, 2024

Conversation

sheagrief
Copy link
Collaborator

Implement the following:

  • feature & test
    • (carries calculation)
    • Bit-Addition
    • Bit-Decomposition

@sheagrief sheagrief changed the base branch from main to feat/benchmark March 14, 2024 07:40
@sheagrief sheagrief changed the base branch from feat/benchmark to main March 14, 2024 07:40
mpc-algebra/examples/test.rs Outdated Show resolved Hide resolved
Copy link
Member

@taskooh taskooh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sheagrief Some comments1

let mut two_l = BigInteger256::from(1u64);
two_l.muln(l as u32);

let mut vec_f = two_l;
Copy link
Member

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?

let mut h = vec_r.bit_add(&g_vec);

// 6
h.pop(); // remove the last element
Copy link
Member

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]

mpc-algebra/src/wire/field.rs Show resolved Hide resolved
@sheagrief sheagrief requested a review from taskooh March 26, 2024 10:11
Copy link
Member

@taskooh taskooh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@taskooh taskooh merged commit 3c9e7da into main Mar 26, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants