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

Impl PartialOrd, Ord for 3 types #68

Closed
wants to merge 1 commit into from

Conversation

RCasatta
Copy link
Contributor

RangeProof, SurjectionProof and PedersenCommitment

The purpose of this is having downstream types like elements::Transaction be usable in ordered collections.

bitcoin::Transaction already support this for the same reason

Copy link
Contributor

@apoelstra apoelstra left a comment

Choose a reason for hiding this comment

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

ACK 1e64777

RangeProof, SurjectionProof and PedersenCommitment

The purpose of this is having downstream types like elements::Transaction
be usable in ordered collections.

bitcoin::Transaction already support this for the same reason
apoelstra added a commit that referenced this pull request Jul 14, 2023
1e64777 Impl PartialOrd, Ord for 3 types (Riccardo Casatta)

Pull request description:

  RangeProof, SurjectionProof and PedersenCommitment

  The purpose of this is having downstream types like elements::Transaction be usable in ordered collections.

  bitcoin::Transaction already support this for the same reason

ACKs for top commit:
  apoelstra:
    ACK 1e64777

Tree-SHA512: b523ce6f85a255d9c7f8881171fb68ac9e1e21c2ae1429183a469f2fb3379f883cc756e3847c6e489a09ea4bd7fa5eaf7c493c8934c66a71dc319804b8c99847
@RCasatta
Copy link
Contributor Author

I didn't notice this was already merged, I am opening a new one with

#[cfg_attr(not(fuzzing), derive(Ord, PartialOrd))]

Otherwise with fuzzing there is a double impl

@RCasatta
Copy link
Contributor Author

closing because has been merged, what's missing is in
#69

@RCasatta RCasatta closed this Jul 14, 2023
apoelstra added a commit to ElementsProject/rust-elements that referenced this pull request Jul 18, 2023
3eecfad Implement Ord for Transaction (Riccardo Casatta)

Pull request description:

  This haven't any consensuns meaning but it's useful to have transactions in ordered collections

  ~~depends on BlockstreamResearch/rust-secp256k1-zkp#68 merged

  ~~draft because needs rust-secp256k1-zkp release BlockstreamResearch/rust-secp256k1-zkp#70

ACKs for top commit:
  apoelstra:
    ACK 3eecfad

Tree-SHA512: ba4a207baa1a1994dd53b86019f814195e1b40c85ed9e294badd6d4eb3cbd7611347bb1afcb6ab3dc944245526bfe02f420d798bcfa831058211e797dba5ec68
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.

2 participants