Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge #829: Don't allow uncompressed public keys without prefix 0x04
c0d36ef Don't allow uncompressed public keys without prefix 0x04 (Noah Lanson) Pull request description: Was following #520 and through it was a quick fix that I could do: #### Changes: - If an uncompressed public key doesn't have prefix 0x04 in `PublicKey::from_slice()`, an error is returned. <br> I was wondering if `PublicKey::from_str()` should also enforce the same rules, however I have not incuded this in the PR. Please let me know if any changes need to be made. Thanks ACKs for top commit: Kixunil: ACK c0d36ef apoelstra: ACK c0d36ef sanket1729: utACK c0d36ef. Not thrilled about the error message expecting len 66, when it can be both 66/130. But can live with it Tree-SHA512: cfbcd569691c9a7f69ee775ec530605f42e988470a2ff9c28b4c881cec6b259053bb2288818e00b6f6b20316b1fb30fecc0b9a240ebbe7618f202ef6b5efeb9b
- Loading branch information
Showing
3 changed files
with
41 additions
and
9 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
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
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