-
Notifications
You must be signed in to change notification settings - Fork 721
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
Expose Key interface in Cardano.Api.Shelley #4048
Conversation
fe1a7bc
to
ebc89c0
Compare
Any chance to get a review on this? |
it looks good to me, and I especially love ❤️ the added documentation. but I'm not really an owner of the API and I don't know if not exposing the full type class was intentional... |
Annoyingly I could not keep the explicit individual definitions + data instances exported so needed to reach for (..) and deduplicate exports.
ebc89c0
to
20e6e21
Compare
😮 There should not be any documentation changes. Was probably in diff because it was not fast-forward to master again. Rebased now. |
@ch1bo So to me, I think you should implement the instance in |
What in particular makes you think it's a bad idea? Adding the Hydra We understood the |
A user wanting to interact with "cardano" via the api will now have to search for the hydra key instances (if they also want to use them). It would be better if everything lived in
This is fine
You can add what you need to |
A user wanting to interact with "cardano" does not need the Despite this, are there any practical issues with exposing the full
Thanks @Jimbo4350, I'm happy to help maintaining |
Ok fair enough. |
bors r+ |
Build succeeded: |
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.
I don't understand why this PR also stopped exporting some existing functions. Was this a mistake or is there some reason?
Sorry for this unsolicited PR, it is not crucial for us, but we wanted to get also your feedback on:
In the Hydra project we are using the cardano-api quite heavily and thought we could distinguish Hydra key types using the same framework, but just with a new
Hydra
key role.Unfortunately it was not possible because some of the type class definition was not exported.
This PR exposes the full type class to be able to define instances of it and having a
Hydra
key role, this yieldsSigningKey Hydra
andVerificationKey Hydra
key types.See also this PR: cardano-scaling/hydra#398