Skip to content

Conversation

@tarcieri
Copy link
Member

This commit renames asn1::Document to asn1::Signature.

This means we now have the following types:

  • ecdsa::Signature: fixed-sized encoding
  • ecdsa::asn1::Signature: ASN.1 DER encoding

Additionally this commit adds an impl of the signature::Signature trait for asn1::Signature, promoting it back to a first-class signature type. This allows ECDSA signature::Signer impls to directly produce ASN.1 encoded signatures again without transcoding, if they so desire.

This commit renames `asn1::Document` to `asn1::Signature`.

This means we now have the following types:

- `ecdsa::Signature`: fixed-sized encoding
- `ecdsa::asn1::Signature`: ASN.1 DER encoding

Additionally this commit adds an impl of the `signature::Signature`
trait for `asn1::Signature`, promoting it back to a first-class
signature type. This allows ECDSA `signature::Signer` impls to directly
produce ASN.1 encoded signatures again without transcoding, if they
so desire.
@tarcieri tarcieri force-pushed the asn1/signature-refactor branch from 7db1725 to 053981c Compare July 23, 2020 16:26
@codecov-commenter
Copy link

codecov-commenter commented Jul 23, 2020

Codecov Report

Merging #102 into master will decrease coverage by 0.85%.
The diff coverage is 60.52%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #102      +/-   ##
==========================================
- Coverage   54.44%   53.59%   -0.86%     
==========================================
  Files           3        3              
  Lines         180      181       +1     
==========================================
- Hits           98       97       -1     
- Misses         82       84       +2     
Impacted Files Coverage Δ
ecdsa/src/asn1.rs 71.69% <55.88%> (-1.64%) ⬇️
ecdsa/src/lib.rs 61.76% <100.00%> (ø)

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 e9037b7...053981c. Read the comment docs.

@tarcieri tarcieri merged commit 932ab45 into master Jul 23, 2020
@tarcieri tarcieri deleted the asn1/signature-refactor branch July 23, 2020 16:36
@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