Skip to content

Conversation

@tarcieri
Copy link
Member

Adds a from_affine_coords method to CompressedPoint and UncompressedPoint which accepts a ScalarBytes for the x and y-coordinates.

This is then used in the k256 and p256 crates to consolidate the duplicated SEC-1 serialization logic.

Adds a `from_affine_coords` method to `CompressedPoint` and
`UncompressedPoint` which accepts a `ScalarBytes` for the x and
y-coordinates.

This is then used in the `k256` and `p256` crates to consolidate the
duplicated SEC-1 serialization logic.
@tarcieri tarcieri requested review from str4d and tuxxy June 20, 2020 18:42
@tarcieri
Copy link
Member Author

This (hopefully) accomplishes one of the goals of #50 without a leaky abstraction /cc @str4d

@codecov-commenter
Copy link

Codecov Report

Merging #52 into master will increase coverage by 0.10%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #52      +/-   ##
==========================================
+ Coverage   81.27%   81.38%   +0.10%     
==========================================
  Files          12       12              
  Lines        1346     1343       -3     
==========================================
- Hits         1094     1093       -1     
+ Misses        252      250       -2     
Impacted Files Coverage Δ
elliptic-curve-crate/src/weierstrass/point.rs 63.15% <100.00%> (+15.00%) ⬆️
k256/src/arithmetic.rs 86.71% <100.00%> (+0.02%) ⬆️
p256/src/arithmetic.rs 84.66% <100.00%> (-0.03%) ⬇️

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 daa8a7d...08d4fce. Read the comment docs.

@tarcieri tarcieri merged commit 5e97ba5 into master Jun 21, 2020
@tarcieri tarcieri deleted the dry-out-sec1-serialization branch June 21, 2020 13:38
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