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

Handling pointers in key conversion #260

Merged
merged 1 commit into from
Nov 29, 2022

Conversation

andresuribe87
Copy link
Contributor

The crypto.PublicKey from the go-crypto package is of type any. This means that users may pass in multiple different things, including pointers to the types of the keys.

This PR adds support for these conversions, along with tests.

@codecov-commenter
Copy link

Codecov Report

Merging #260 (547120c) into main (c0926ad) will decrease coverage by 0.04%.
The diff coverage is 50.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #260      +/-   ##
==========================================
- Coverage   58.84%   58.80%   -0.04%     
==========================================
  Files          38       38              
  Lines        4514     4534      +20     
==========================================
+ Hits         2656     2666      +10     
- Misses       1432     1442      +10     
  Partials      426      426              
Impacted Files Coverage Δ
crypto/jwk.go 69.85% <50.00%> (-1.30%) ⬇️

Copy link
Member

@decentralgabe decentralgabe left a comment

Choose a reason for hiding this comment

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

thanks - this is great

@andresuribe87 andresuribe87 merged commit 9d3e18c into TBD54566975:main Nov 29, 2022
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

3 participants