Created
May 28, 2020 16:54
-
-
Save OR13/8a7e4d64629a3b3fb68758b672b052a2 to your computer and use it in GitHub Desktop.
DID Key Resolve Example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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