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

chore: implement arbitrary comparison for BLS keys #456

Merged
merged 9 commits into from
Jan 12, 2024
Merged

chore: implement arbitrary comparison for BLS keys #456

merged 9 commits into from
Jan 12, 2024

Conversation

mrain
Copy link
Contributor

@mrain mrain commented Jan 12, 2024

Description

closes: #XXXX


Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.

  • Targeted PR against correct branch (main)
  • Linked to GitHub issue with discussion and accepted design OR have an explanation in the PR that describes this work.
  • Wrote unit tests
  • Updated relevant documentation in the code
  • Added a relevant changelog entry to the Pending section in CHANGELOG.md
  • Re-reviewed Files changed in the GitHub PR explorer

@mrain mrain changed the title chore: implement arbitrary comparison for BLS ver key chore: implement arbitrary comparison for BLS keys Jan 12, 2024
ggutoski
ggutoski previously approved these changes Jan 12, 2024
Copy link
Contributor

@ggutoski ggutoski left a comment

Choose a reason for hiding this comment

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

Approved so as not to slow progress but please see my comment

impl PartialOrd for VerKey {
fn partial_cmp(&self, other: &Self) -> Option<core::cmp::Ordering> {
self.0
.into_affine()
Copy link
Contributor

Choose a reason for hiding this comment

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

This is a nontrivial computation, no? Is there no way to avoid it?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Issue created here: #457

@philippecamacho
Copy link
Contributor

Should we add a test?

@mrain
Copy link
Contributor Author

mrain commented Jan 12, 2024

Should we add a test?

test added in a45fcb5

Copy link
Contributor

@philippecamacho philippecamacho left a comment

Choose a reason for hiding this comment

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

A minor comment. LGTM

@mrain mrain merged commit 7e906cf into main Jan 12, 2024
5 checks passed
@mrain mrain deleted the cl/sig-fix branch January 12, 2024 18:16
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

3 participants