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

Added a check for the length of PDLwSlackProof vector. #163

Merged
merged 3 commits into from
Feb 8, 2022
Merged

Added a check for the length of PDLwSlackProof vector. #163

merged 3 commits into from
Feb 8, 2022

Conversation

DmytroTym
Copy link
Contributor

@DmytroTym DmytroTym commented Jan 24, 2022

Hey, @MatanHamilis! Sorry for taking so long to write two lines of code. Quite frankly, I just forgot about this. I think there are no more places in the code where the length check needs to be performed (in keygen round 3 and sign round 2, P2P container is used where parties need to send a list of messages).
PS. I only added an assert_eq, without returning the vector of misbehaving parties. When implementing identifiable aborts, this should be changed. Or I can do it now.

@MatanHamilis
Copy link
Contributor

Hey, no worries! I've been also quite overloaded in the past few days.

This looks quite good!
It is totally up to you, do you think you would be able to add the code to identify the misbehaving parties?

@DmytroTym
Copy link
Contributor Author

Sure, it's easy. I'll add it tomorrow.

@DmytroTym
Copy link
Contributor Author

DmytroTym commented Jan 31, 2022

I actually moved the check inside the phase5_verify_pdl method since it is where the validity of the proofs is verified and blame assigned. IMO, it's cleaner and more intuitive this way. Still, note that in round 5 we just panic whenever an error is returned from the phase5_verify_pdl method. This specific blame is, again, easy to add (though IMO implementing blame exhaustively would require a lot of effort).

@DmytroTym
Copy link
Contributor Author

DmytroTym commented Feb 8, 2022 via email

@MatanHamilis MatanHamilis merged commit c94065f into ZenGo-X:master Feb 8, 2022
@MatanHamilis
Copy link
Contributor

Forgot to look into this, thanks for reminding!

HRezaei pushed a commit to HRezaei/multi-party-ecdsa that referenced this pull request Feb 22, 2022
* Added a check for the length of PDLwSlackProof vector.

* Moved check for the length of PDLwSlackProof vector inside party_i.rs, returning proper error if this check fails.

* Forgot to run rustfmt :)
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