0.1.4 • Published 7 years ago
@transmute/github-did v0.1.4
Github DID
This is experimental, not endorsed by Github, and under development.
Install
npm i -g @transmute/github-didGetting Started
ghdid init alice@example.com yoloThe email goes in your OpenPGP key, the password is used to protect your private key.
This will clone the repo into ~/.github-did/${repo}, where repo is specified by package.json repository (github-did). Your wallet will be created, encrypted and stored:
~/.github-did/wallet.json
Your DID Document will be:
~/.github-did/${repo}/dids/${kid}.jsonld;
Use git to commit your new DID Before proceeding.
cd ~/.github-did/github-did
git add ./dids
git commit -m "add did for alice@example.com"
git push origin masterIf you wish to use our repo, you must open a pull request instead.
Now that your DID Document is on Github in the correct repo, you can use the ghdid did method resolver, and linked data signature verification libraries.
ghdid resolve did:ghdid:transmute-industries~github-did~8e3eaf0eddf5bbaea1b6881c819ef4ed1a70ef95ca48ef5c535d2073ca72db9eThis will resolve the DID to a DID Document by using Github and https.
The signature for the DID Document will be checked.
Development
npm i
npm run ghdid init alice@example.com yolo