-
Notifications
You must be signed in to change notification settings - Fork 7
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
Update JWS, JWT implementation #55
Conversation
@@ -27,14 +27,12 @@ data class JsonWebKey( | |||
val type: JwkType? = null, | |||
@SerialName("kid") | |||
val keyId: String? = null, | |||
//EC |
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.
Why remove the comment?
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.
Because it's not a KDoc comment, so it's not visible from outside the source code, and it provides no added value.
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.
since this class mixes up rsa and ec properties as per the spec, I do feel it provides added value to maintainers of the code base
} | ||
} | ||
|
||
private fun ByteArray.decodeX5c() = decodeToString() |
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.
A function like that should not be just a private utility in KMP-Crypto.
It would make more sense to add it to the certificate class, for example, because it provides added value in general.
Update data classes as a prerequisite to a-sit-plus/vck#48
Also cc'ing @n0900