-
Notifications
You must be signed in to change notification settings - Fork 949
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
core/identity: Implement Hash
and Ord
for PublicKey
#2915
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.
Thank you for working on this!
I've left a few comments :)
Co-authored-by: Thomas Eizinger <thomas@eizinger.io>
a1bb1e1
to
05f3000
Compare
05f3000
to
8292a78
Compare
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.
Thanks for following up with this! Please see inline comment.
…s implemented manually.
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.
Thank you! :)
I've triggered CI. One last comment, otherwise this should be good to go in!
Co-authored-by: Thomas Eizinger <thomas@eizinger.io>
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.
Thanks @futpib for the patch and @thomaseizinger for the guidance.
Interoperability test failures due to libp2p/test-plans#41. Merging here. |
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.
Oh, missed one thing.
Hash
and Ord
for PublicKey
Fixed the merge conflicts :) |
…ublic-key-hash-ord
Interoperability tests failing due to libp2p/test-plans#41. Merging here. Thanks @futpib! |
Description
Implemented
Ord
andHash
instances forPublicKey
to enable putting them in aHashSet
/BTreeSet
.Links to any relevant issues
Fixes #2910
Open Questions
Change checklist