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

collect decom1 to message struct #29

Merged
merged 4 commits into from
May 29, 2019
Merged

collect decom1 to message struct #29

merged 4 commits into from
May 29, 2019

Conversation

omershlo
Copy link
Contributor

No description provided.

@omershlo omershlo requested a review from oleiba May 27, 2019 21:26
@@ -43,6 +43,11 @@ pub struct KeyGenBroadcastMessage1 {
com: BigInt,
}

pub struct KeyGenMessage2 {
Copy link
Contributor

@oleiba oleiba May 28, 2019

Choose a reason for hiding this comment

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

Can we change it to KeyGenBroadcastMessage2 (note the Broadcast) for consistency?

&y_vec[i].bytes_compressed_to_big_int(),
&blind_vec[i],
&decom1_vec[i].y_i.bytes_compressed_to_big_int(),
&decom1_vec[i].blind_factor,
Copy link
Contributor

Choose a reason for hiding this comment

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

I think it is better that this function (phase1_verify_com_phase2_distribute) will calculate and return y_sum.
Otherwise, this is necessarily code that would be written by the consuming application, and it's preferable to be calculated after gathering all the decommitments and verifying them, so I think it's a perfect place to do so.

Copy link
Contributor

@oleiba oleiba left a comment

Choose a reason for hiding this comment

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

Great, thanks.
2 comments.

@oleiba oleiba merged commit bfc702e into master May 29, 2019
@oleiba oleiba deleted the zill_kg_message2 branch May 29, 2019 09:26
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.

None yet

2 participants