Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge rust-bitcoin/rust-bitcoin#1084: Add PublicKey::to_sort_key meth…
…od for use with sorting by key 24f0441 Add PublicKey::to_sort_key method for use with sorting by key (junderw) Pull request description: Replaces #524 See previous PR for reasoning. This solution is a little more straightforward. The name and documentation should be enough to prevent misuse. We can also impl a to_sort_key for any CompressedKey added later. (or just impl Ord in a BIP67 compliant way) TODO: - [x] Add more sorting test vectors. Ideas of edge cases to test are welcome. ACKs for top commit: apoelstra: ACK 24f0441 tcharding: ACK 24f0441 Kixunil: ACK 24f0441 Tree-SHA512: 92d68cccaf32e224dd7328edeb3481dd7dcefb2f9090b7381e135e897c21f79ade922815cc766c5adb7ba751b71b51a773d103af6ba13fc081e1f5bfb846b201
- Loading branch information
Showing
1 changed file
with
209 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters