-
Notifications
You must be signed in to change notification settings - Fork 10
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
replace usage of nimbusds
Algorithm
and Curve
with our own enums
#110
Comments
@mistermoe can you elaborate on what confusion this is causing? The way I think about it is:
|
yep,
|
@andresuribe87 This is the core issue for me. I believe if we are to provide tools for decentralised identity that we should commit to providing the types necessary to support that. I can also see a lot of benefit in a single narrative/style for how we present our SDKs, of which types are a significant part. |
@mistermoe can you provide an example of our own enum to illustrate how it'd simplify things? |
We're exposing other Nimbus objects, such as |
Yes, I think we should make our own. In general, I think we should follow https://jlbp.dev/JLBP-2. In particular, "Avoid exposing types from your dependencies". So this issue can be split into two categories of tasks:
For 2, related to |
Currently,
Crypto
,KeyManager
, andDidKey
expect nimbusdsJWSAlgorithm
andCurve
arguments for various methods. we should implement our own enums and use those instead. surfacing a dependency's enums as arguments to our libs causes confusion. Confusion == kaka DevEXThe text was updated successfully, but these errors were encountered: