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

Update JWS, JWT implementation #55

Merged
merged 4 commits into from
Apr 10, 2024
Merged

Conversation

nodh
Copy link
Collaborator

@nodh nodh commented Apr 8, 2024

Update data classes as a prerequisite to a-sit-plus/vck#48

Also cc'ing @n0900

@nodh nodh requested a review from JesusMcCloud April 8, 2024 09:25
@nodh nodh self-assigned this Apr 8, 2024
@@ -27,14 +27,12 @@ data class JsonWebKey(
val type: JwkType? = null,
@SerialName("kid")
val keyId: String? = null,
//EC
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why remove the comment?

Copy link
Collaborator Author

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.

Copy link
Collaborator

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()
Copy link
Collaborator

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.

@nodh nodh requested a review from JesusMcCloud April 10, 2024 08:22
@nodh nodh merged commit 4999c6e into development Apr 10, 2024
4 checks passed
@nodh nodh deleted the feature/eudi-further-interop branch April 10, 2024 12:45
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.

2 participants