-
Notifications
You must be signed in to change notification settings - Fork 26
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
Consolidate API names related to Key #161
Conversation
Signed-off-by: qmuntal <qmuntaldiaz@microsoft.com>
Signed-off-by: qmuntal <qmuntaldiaz@microsoft.com>
Signed-off-by: qmuntal <qmuntaldiaz@microsoft.com>
Signed-off-by: qmuntal <qmuntaldiaz@microsoft.com>
Signed-off-by: qmuntal <qmuntaldiaz@microsoft.com>
Signed-off-by: qmuntal <qmuntaldiaz@microsoft.com>
Codecov Report
@@ Coverage Diff @@
## main #161 +/- ##
==========================================
+ Coverage 93.59% 93.80% +0.20%
==========================================
Files 11 11
Lines 1687 1695 +8
==========================================
+ Hits 1579 1590 +11
+ Misses 75 72 -3
Partials 33 33
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
@qmuntal : Thomas is on a long vacation. Please get the necessary comments from @shizhMSFT and then proceed with submission. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This PR contain the following changes:
NewXKey
toNewKeyX
, being X the key type. This form is more idiomatic.Key
prefix from Key properties. It is go-ish to avoid prefixing the name of a property with the name of the struct.XInvalid
toXReserved
, being XKeyType
,Curve
,KeyOp
andAlgorithm
. This makes our API more similar to the COSE spec naming.