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

Traits for DID method operations #398

Open
clehner opened this issue Mar 1, 2022 · 0 comments
Open

Traits for DID method operations #398

clehner opened this issue Mar 1, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@clehner
Copy link
Contributor

clehner commented Mar 1, 2022

#379 (review)

If DIDMethodError::OptionNotSupported means that not all methods support all operations, maybe that means the trait should be split, to get compile time guarantees.

#379 adds DID operation functions to the DIDMethod trait: create, update, recover and deactivate. But these are not required to implement the trait, and default to return an error. Some DID methods don't implement any of those operations; some implement all of them, and some may implement some but not others. Create, update and deactivate are described in DID Core, although they do not have an API defined for them, there is some API for them in DIF DID Registration (which #379 refers to); but the recover operation is not standard except in Sidetree.

@clehner clehner added the enhancement New feature or request label Apr 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant