Skip to content

Instantly share code, notes, and snippets.

@OR13
Created May 28, 2020 16:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save OR13/8a7e4d64629a3b3fb68758b672b052a2 to your computer and use it in GitHub Desktop.
Save OR13/8a7e4d64629a3b3fb68758b672b052a2 to your computer and use it in GitHub Desktop.
DID Key Resolve Example
const didKeyDriver = require('did-method-key').driver();
const resolve = async (did: string, options: any) => {
const data = await didKeyDriver.get({
did,
});
const parsedDidDocument = JSON.parse(JSON.stringify(data));
return parsedDidDocument;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment