factomatic / factom-did-js

JavaScript library for DIDs on Factom

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

factom-did

factom-did is a JavaScript library for working with DIDs on the Factom blockchain. It is an implementation of the Factom DID method specification.

The library enables:

  • creation of a new DID
  • addition of management key(s) for the DID
  • addition of DID key(s) for the DID
  • addition of service(s) for the DID
  • export of public metadata to be recorded on Factom
  • update of an existing DID: adding/revoking management keys, DID keys and services and producing a signed DID update entry
  • upgrade of the method version of an existing DID
  • deactivaiton of an existing DID

Examples

You can find an example of the library workflow in the examples/ directory.

Installation

npm install factom-did

Build

  • Clone the repo

  • Install the dependencies:

npm install
  • Execute the tests:
npm test
  • Execute the example:
node examples/example.js

About

JavaScript library for DIDs on Factom

License:MIT License


Languages

Language:JavaScript 100.0%