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

[proposal] Matching identifiers by alias should not depend on the provider #1215

Closed
mirceanis opened this issue Aug 4, 2023 · 0 comments · Fixed by #1218
Closed

[proposal] Matching identifiers by alias should not depend on the provider #1215

mirceanis opened this issue Aug 4, 2023 · 0 comments · Fixed by #1218
Labels
enhancement New feature or request pinned don't close this just for being stale

Comments

@mirceanis
Copy link
Member

mirceanis commented Aug 4, 2023

There are a few methods that use or can use a combination of alias and provider when filtering DIDs:
didManagerGet
didManagerGetOrCreate
didManagerGetByAlias
AbstractDIDStore.getDID

The assumptions that lead to this design no longer hold true and alias should behave uniformly, no matter the provider used.

Describe the solution you'd like
These methods should not require a provider when querying.
didManagerCreate and didManagerImport using an alias that already exists should fail, no matter the provider used.
didManagerGetOrCreate using an alias should fail if the requested provider is different than the provider of an existing identifier matching the alias.

Additional context
The changes would also involve @veramo/data-store and @veramo/data-store-json
This would be a BREAKING CHANGE, since the interface definitions would be different at least for the DID stores and the behavior of some the DIDManager methods as well.

@mirceanis mirceanis added the enhancement New feature or request label Aug 4, 2023
mirceanis added a commit that referenced this issue Aug 4, 2023
…ovider

fixes #1215

BREAKING CHANGE: The behavior of `DIDManager` has changed when working with `alias`. It is mostly ignoring `provider` unless it is used to create new identifiers. `AbstractDIDStore` APIs have been adapted and implementations have changed.
mirceanis added a commit that referenced this issue Aug 4, 2023
…ovider

fixes #1215

BREAKING CHANGE: The behavior of `DIDManager` has changed when working with `alias`. It is mostly ignoring `provider` unless it is used to create new identifiers. `AbstractDIDStore` APIs have been adapted and implementations have changed.
mirceanis added a commit that referenced this issue Aug 4, 2023
…ovider

fixes #1215

BREAKING CHANGE: The behavior of `DIDManager` has changed when working with `alias`. It is mostly ignoring `provider` unless it is used to create new identifiers. `AbstractDIDStore` APIs have been adapted and implementations have changed.
mirceanis added a commit that referenced this issue Aug 4, 2023
…ovider

fixes #1215

BREAKING CHANGE: The behavior of `DIDManager` has changed when working with `alias`. It is mostly ignoring `provider` unless it is used to create new identifiers. `AbstractDIDStore` APIs have been adapted and implementations have changed.
mirceanis added a commit that referenced this issue Aug 15, 2023
…ovider

fixes #1215

BREAKING CHANGE: The behavior of `DIDManager` has changed when working with `alias`. It is mostly ignoring `provider` unless it is used to create new identifiers. `AbstractDIDStore` APIs have been adapted and implementations have changed.
@mirceanis mirceanis added the pinned don't close this just for being stale label Aug 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request pinned don't close this just for being stale
Projects
None yet
1 participant