@transmute/github-did

0.1.4 • Public • Published

Github DID

Build Status

This is experimental, not endorsed by Github, and under development.

Install

npm i -g @transmute/github-did

Getting Started

ghdid init alice@example.com yolo

The 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 master

If 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~8e3eaf0eddf5bbaea1b6881c819ef4ed1a70ef95ca48ef5c535d2073ca72db9e

This 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

Readme

Keywords

none

Package Sidebar

Install

npm i @transmute/github-did

Weekly Downloads

0

Version

0.1.4

License

ISC

Unpacked Size

66.5 kB

Total Files

53

Last publish

Collaborators

  • ipbyrne
  • or13
  • transmute-ci