Skip to content

Conversation

@tarcieri
Copy link
Member

The DigestPrimitive trait, intended to be implemented within a crate which impls elliptic_curve::weierstrass::Curve, provides a blanket impl of PrehashSignature for ecdsa::Signature<C: Curve>.

This is a small hack needed to work around the fact that the ECDSA signature trait now lies in an external crate, so crates which implement a specific curve can no longer impl traits on ecdsa::Signature.

The `DigestPrimitive` trait, intended to be implemented within a crate
which impls `elliptic_curve::weierstrass::Curve`, provides a blanket
impl of `PrehashSignature` for `ecdsa::Signature<C: Curve>`.

This is a small hack needed to work around the fact that the ECDSA
signature trait now lies in an external crate, so crates which implement
a specific curve can no longer impl traits on `ecdsa::Signature`.
@codecov-commenter
Copy link

Codecov Report

Merging #99 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #99   +/-   ##
=======================================
  Coverage   54.44%   54.44%           
=======================================
  Files           3        3           
  Lines         180      180           
=======================================
  Hits           98       98           
  Misses         82       82           
Impacted Files Coverage Δ
ecdsa/src/lib.rs 61.76% <ø> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update bc5a705...a91e118. Read the comment docs.

@tarcieri tarcieri merged commit 04ca0e2 into master Jul 14, 2020
@tarcieri tarcieri deleted the ecdsa/digest-primitive branch July 14, 2020 03:11
@tarcieri tarcieri mentioned this pull request Aug 11, 2020
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.

3 participants