-
Notifications
You must be signed in to change notification settings - Fork 251
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
Add JavaScript SDK for the Universal Resolver #28
Comments
Can you be more specific? This repo contains docker examples, are you looking for a node-js sdk for the universal resolver http interface? |
@peacekeeper I'd be happy to provide a js sdk for the public http interface if that would help resolve this issue, its something I would find very useful generally. |
@OR13 yes that would be great! This could be added here in the directory structure: The idea has always been for DIF to develop DID Resolvers and clients in multiple languages. |
I will open a PR, it might be rough, but it will work in both the browser and nodejs... it will be based on: https://github.com/transmute-industries/PROPOSAL-OpenPgpSignature2019/blob/master/src/universalResolver.js |
We revisited this on the 23 Jun 2021 Universal Resolver call. Even though there hasn't been any activity on this issue for a while, this still sounds useful; is anyone aware of a JS library (NPM package?) that resolves DIDs via the Universal Resolver HTTPS interface? @thomas-tran @OR13 ? |
I think this would be helpful, particularly to help test resolution and dereferencing. We would need code that maps a We've avoided this so far, by just using JSON-LD Document Loaders.... You can consider the use of a document loader to be equivalent to
There remain questions about whether document loaders should do "resolution" or "dereferencing" which would impact the return type that the universal resolver would send, or would require "framing" on the client... |
We discussed this on the 29 Sep 2021 Universal Resolver work item call. A JavaScript client DID resolver would definitely be useful, and it is also clearly useful for JSON-LD document loaders. Not sure however if it makes sense to keep this issue here open. If anyone is interested in working on such a JavaScript library as a standalone module, then a new repository and work item should be created for this, and this issue here should probably be closed. |
As noted in the comments, there are SDKs for python and java here
The text was updated successfully, but these errors were encountered: