-
Notifications
You must be signed in to change notification settings - Fork 516
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
feat: enable creation of DIDs for all registered methods #2067
feat: enable creation of DIDs for all registered methods #2067
Conversation
f6f89f8
to
9cb75be
Compare
To leverage the recent addition of the `DIDMethods` registry: * Relax condition on did format for the `POST /wallet/did` endpoint * Validate new DIDs parameters using `DIDMethods` in Askar and InMemory profiles validate new DIDs parameters Signed-off-by: Clément Humbert <[email protected]>
9cb75be
to
224b93e
Compare
FYI - @andrewwhitehead @ianco @dbluhm |
I notice there are changes to the |
Correct. As far as I've seen, Even if we want it to be added, I would argue we should defer this to another piece of work and PR. What do you think ? |
I would agree that we add that this is needed for the Indy-SDK as an issue and whereever else a notification should be added. However, I think we can proceed with that limitation understood. |
Get holder-defined DID from options instead of requests' root. Signed-off-by: Clément Humbert <[email protected]>
44746f9
to
aae6d83
Compare
OK I think on-going support for indy-sdk in aca-py is an open question right now anyways, so adding a separate issue to add this functionality to the "indy" modules in aca-py is a good approach ... |
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.
Overall it looks good. Two things - (1) we need some documentation somewhere (minimum would be something in the swagger docs, nice would be updates to DIDResolution.md, @swcurran thoughts?), and (2) we need to update the alice/faber demo to include this feature somewhere (I can help with this one)
* Augment existing swagger documentation for the `POST /wallet/did/create` route * Add `DIDMethods.md` documentation to introduce the concept of the `DIDMethods` registry and its use to register new methods. Signed-off-by: Clément Humbert <[email protected]>
I added a
I'll gladly take pointers on how we should include the feature in the demo. |
@chumbert the docs look good, thanks! I need to think about how to add this to the demo ... The branch is out of date though, if you can sync it up with the main branch then we can merge |
Kudos, SonarCloud Quality Gate passed! |
Here're a couple of changes leveraging the recent addition of the
DIDMethods
registry.The aim is to allow agents using DID methods defined in plugin to create DIDs without implementing method-specific endpoints if not necessary.
Changes:
POST /wallet/did
endpointDIDMethods
in Askar and InMemory profilesvalidate new DIDs parameters
Notes:
DIDMethod
but this would require quite some work to be able to remove the did:sov and did:key initialization hardcoded inDIDMethods
.Signed-off-by: Clément Humbert [email protected]