Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add curve and parameters properties to ECDSAKey protocol #143

Merged
merged 5 commits into from Mar 15, 2024

Conversation

JaapWijnen
Copy link
Contributor

This adds curve and parameter properties to the ECDSAKey protocol and also makes them public (non settable) on the ECDSA.PublicKey and ECDSA.PrivateKey types.

Copy link

codecov bot commented Mar 14, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 69.05%. Comparing base (f97e96f) to head (4bebf97).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #143   +/-   ##
=======================================
  Coverage   69.05%   69.05%           
=======================================
  Files          59       59           
  Lines        1561     1561           
=======================================
  Hits         1078     1078           
  Misses        483      483           
Files Coverage Δ
Sources/JWTKit/ECDSA/ECDSA.swift 86.00% <100.00%> (ø)

@JaapWijnen
Copy link
Contributor Author

Not sure what's going on with CI here. Any ideas? @ptoffy or @gwynne ?

@ptoffy
Copy link
Member

ptoffy commented Mar 14, 2024

@JaapWijnen yeah looks like this isn't you, the same error is happening all over Vapor repos. There's probably something wrong with GH's CI or similar

Copy link
Member

@ptoffy ptoffy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While we're making these public, could you please move tests such as https://github.com/vapor/jwt-kit/blob/main/Tests/JWTKitTests/InternalTests.swift#L7 to the ECDSATests file so we can minify internal tests as much as possible? Thanks!

@ptoffy ptoffy self-requested a review March 15, 2024 21:49
@ptoffy ptoffy merged commit 295a5e5 into main Mar 15, 2024
10 of 11 checks passed
@ptoffy ptoffy deleted the improve-ecdsakey-protocol branch March 15, 2024 21:49
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.

None yet

2 participants