-
Notifications
You must be signed in to change notification settings - Fork 48
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
Add Ferret-core #90
Add Ferret-core #90
Conversation
xiangxiecrypto
commented
Jan 3, 2024
- Add the core building blocks of Ferret (without network IO).
- It can still be further optimized when integrated with network IO, which needs COT implementation.
Let me merge |
#87 is merged, you should be able to rebase |
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.
Nice! Just a couple minor adjustments needed, otherwise lgtm :)
delta: Block, | ||
lpn_parameters: LpnParameters, | ||
lpn_type: LpnType, |
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 we move these to new
?
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.
Let us keep it here for now, the new
function is only a default instantiation without any specific parameters.
lpn_parameters: LpnParameters, | ||
lpn_type: LpnType, | ||
seed: Block, |
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.
These can be moved to new
as well
/// * `receiver_msg` - The message that the ideal MPCOT sends to the receiver. | ||
/// * `alphas` - The positions in each extension. | ||
/// * `n` - The length of the vector. | ||
pub fn check( |
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.
Please pull out into a standalone function gated with #[cfg(test)]