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

should not need to strip fragments to resolve a did document... #146

Open
OR13 opened this issue Jul 31, 2021 · 0 comments
Open

should not need to strip fragments to resolve a did document... #146

OR13 opened this issue Jul 31, 2021 · 0 comments

Comments

@OR13
Copy link
Member

OR13 commented Jul 31, 2021

const did = require("@transmute/did-key.js");

if (iri.startsWith("did:")) {
    const { didDocument } = await did.resolve(iri.split("#")[0], {
      accept: "application/did+json",
    });
    return {
      document: didDocument,
    };
  }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant