-
Notifications
You must be signed in to change notification settings - Fork 378
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
Impl PartialOrd and Ord for Invoice #2279
Conversation
Hmm, I'd kinda rather we just |
Codecov ReportPatch coverage:
❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more. Additional details and impacted files@@ Coverage Diff @@
## main #2279 +/- ##
==========================================
- Coverage 91.50% 90.91% -0.59%
==========================================
Files 104 104
Lines 52087 52770 +683
Branches 52087 52770 +683
==========================================
+ Hits 47660 47976 +316
- Misses 4427 4794 +367
☔ View full report in Codecov by Sentry. |
Tried doing that, it boils down to not having it impl'd on |
|
Maybe I am an idiot and don't see it but I don't think it exists in rust-bitcoin. This is the only use of https://github.com/search?q=repo%3Arust-bitcoin%2Frust-bitcoin%20RecoverableSignature&type=code I made a PR in rust-secp256k1 for now: rust-bitcoin/rust-secp256k1#611 Unless do you mean I do something like this? impl PartialOrd for InvoiceSignature {
fn partial_cmp(&self, other: &Self) -> Option<Ordering> {
self.0.serialize_compact().1.partial_cmp(&other.0.serialize_compact().1)
}
}
impl Ord for InvoiceSignature {
fn cmp(&self, other: &Self) -> Ordering {
self.0.serialize_compact().1.cmp(&other.0.serialize_compact().1)
}
} |
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.
Yea, rust-secp is the right place for that fix, sorry for the confusion. This LGTM as-is and we should clean it up after rust-secp.
No description provided.