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

Fix GetCommitteeId #503

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

MatheusFranco99
Copy link
Contributor

Overview

This PR fixes a possible overflow in the GetCommitteeID function.

Closes #501 .

Copy link
Contributor

@GalRogozinski GalRogozinski left a comment

Choose a reason for hiding this comment

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

Note that the underlying issue stems for OperatorID being too large (64 bits)...
Since it is transferred on wire it can be 32 bits or even lower.

Having said that, we can always pad OperatorID in the future for committee hash calculations. There's no performance downside to my understanding since the padded input is still smaller than SHA's block size. It will just look a little funny and raise eyebrows.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug: Incorrect type conversion in GetCommitteeID
3 participants