-
Notifications
You must be signed in to change notification settings - Fork 15
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
Check length of polynomials #88
Conversation
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.
The logic looks good, but shouldn't we add tests here too?
Indeed, I’ll add some tomorrow |
Ok @djordon new generic test added and called from |
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.
Looks good.
Suppose at the end of all of this, there is a bad party member who uses an incorrect polynomial length. Does WSTS associate the party id to their public key or is that all left to the caller?
Oh, very good question. It looks like So we need to check that the poly length equals the threshold there too. |
Thinking about this more, maybe we shouldn't do a separate check for Here's the duplicated Here's the actual Here's where we map the Thoughts? |
I went ahead and fixed it in the separate check, then added a test. Are you okay with merging as is @djordon ? |
…omial degrees both gt and lt the threshold
This change fixes a DoS that results from incorrectly sized polynomials. A polynomial that is too large will result in signatures that fail to verify, and one that is too small will lead to a
panic
when initializing the signature aggregator.Fixes #87