-
Notifications
You must be signed in to change notification settings - Fork 110
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The backstory of these traits was once upon a time we didn't yet have the trait structure in place to express algorithms like ECDSA signing and verification generically, so each crate (at the time just `k256` and `p256`) had a nearly duplicated implementation of ECDSA, with `k256` including tweaks for low-S normalization. Now the `ecdsa` crate contains fully generic implementations of both algorithms, and with the `EcdsaCurve` trait, carries a `NORMALIZE_S` preference, so these traits are just needless indirection at this point. This removes the traits, converting non-trivial methods into static functions in the `hazmat` module, namely `sign_prehashed_rfc6979`.
- Loading branch information
Showing
5 changed files
with
154 additions
and
222 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
Oops, something went wrong.