Skip to content

k256: impl ecdsa::hazmat::RecoverableSignPrimitive#111

Merged
tarcieri merged 1 commit into
masterfrom
k256/recoverable-sign-primitive
Aug 4, 2020
Merged

k256: impl ecdsa::hazmat::RecoverableSignPrimitive#111
tarcieri merged 1 commit into
masterfrom
k256/recoverable-sign-primitive

Conversation

@tarcieri

@tarcieri tarcieri commented Aug 4, 2020

Copy link
Copy Markdown
Member

Impls the RecoverableSignPrimitive trait introduced in RustCrypto/signatures#111 which returns the necessary information
(even-or-odd) about the ECDSA signature's R y-coordinate to be able to compute the recovery ID without using brute force trial recovery.

This implementation leaks some details the existing ecdsa crate APIs are trying to abstract over, but hopefully can feed into the requirements for what those APIs should actually look like.

@tarcieri tarcieri force-pushed the k256/recoverable-sign-primitive branch 2 times, most recently from 468ea8c to 564675e Compare August 4, 2020 04:11
@codecov-commenter

codecov-commenter commented Aug 4, 2020

Copy link
Copy Markdown

Codecov Report

Merging #111 into master will decrease coverage by 0.16%.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #111      +/-   ##
==========================================
- Coverage   51.82%   51.66%   -0.17%     
==========================================
  Files          20       20              
  Lines        3473     3484      +11     
==========================================
  Hits         1800     1800              
- Misses       1673     1684      +11     
Impacted Files Coverage Δ
k256/src/ecdsa/recoverable.rs 0.00% <ø> (ø)
k256/src/ecdsa/signer.rs 0.00% <0.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 fe1d9cc...51fd051. Read the comment docs.

Impls the `RecoverableSignPrimitive` trait introduced in
RustCrypto/signatures#111 which returns the necessary information
(even-or-odd) about the ECDSA signature's `R` y-coordinate to be able to
compute the recovery ID without using brute force trial recovery.

This implementation leaks some details the existing `ecdsa` crate APIs
are trying to abstract over, but hopefully can feed into the
requirements for what those APIs should actually look like.
@tarcieri tarcieri force-pushed the k256/recoverable-sign-primitive branch from 564675e to 51fd051 Compare August 4, 2020 04:21
@tarcieri tarcieri merged commit 109e7ab into master Aug 4, 2020
@tarcieri tarcieri deleted the k256/recoverable-sign-primitive branch August 4, 2020 04:25
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.

2 participants