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

Abstract over DIDs with an async verify interface #16

Open
cdata opened this issue Jul 19, 2022 · 1 comment
Open

Abstract over DIDs with an async verify interface #16

cdata opened this issue Jul 19, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@cdata
Copy link
Member

cdata commented Jul 19, 2022

DIDs may not always resolve directly to public key bytes. This being the case, the current strategy to resolve DIDs to key material via DidParser is probably not adaptable enough to suit our needs over the long term.

An imminent refactor of ts-ucan will abstract over DIDs with an async verification method: https://github.com/ucan-wg/ts-ucan/blob/0e2d5502576eeb1e524b866e1539a2b35e4aa0c9/packages/core/src/plugins.ts#L9-L12

We should probably follow suit with a similar strategy, for the sake of coherence and long-term flexibility in resolving DIDs.

@cdata
Copy link
Member Author

cdata commented Jul 19, 2022

Note that this has direct relevance to #3

@cdata cdata changed the title Abstract over DIDs with a verify interface Abstract over DIDs with an async verify interface Jul 19, 2022
@cdata cdata added the enhancement New feature or request label Jul 19, 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