-
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
Make Key more extensible #151
Comments
List of things (for myself) that I'm finding while working on the proposal:
|
Please could you clarify this? As far as I can see, |
Hug, I misunderstood the |
Done! |
I'm opening this issue to discuss the
Key
design before cuttingv1.2.0
@setrofim (I've removed the tag and release you just created).Extracted from #146 (review):
The
Key
struct, implemented in #146, contains all known key parameters, that is, from EC2, OKP and Symmetric Keys. This doesn't scale well, as in the future we might want to support new keys that, for example, defines D as atstr
instead ofbstr
, in which case it will be hard to retrofit the new key. In fact, this already seems to happen with EC2 y-coordinate, we only supportbstr
but the spec also supports bool.IMO it would have been better to define key parameters in separate structs, one for each key type, and have
Key
just contain a property like Params any, which could contain the specialized parameters struct.@shizhMSFT
The text was updated successfully, but these errors were encountered: