1.0.2 • Published 1 year ago

@orbitdb/identity-provider-did v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

OrbitDB DID Identity Provider

Matrix npm version node

Create and sign OrbitDB identities using a Decentralized IDentifier (DID). See https://www.w3.org/TR/did-core/.

Project status & support

  • Status: in active development
  • Compatible with orbitdb versions >= 1.0.0

Install

This project uses npm and nodejs.

npm i @orbitdb/identity-provider-did

Usage

Use addIdentityProvider to make the DID identity provider available to OrbitDB, then pass the type param to createIdentity with the identity provider name "did":

// Fill out with actual use case
import * as OrbitDBIdentityProviderDID from '@orbitdb/identity-provider-did'
import { create } from 'ipfs-core'
import { Identities, addIdentityProvider } from '@orbitdb/core'

const ipfs = await create()

addIdentityProvider(OrbitDBIdentityProviderDID)

const identities = await Identities({ ipfs })

const identity = await identities.createIdentity({ id: 'userA', type: 'ethereum' }) // you can now use this with your OrbitDB databases.

Contributing

Take a look at our organization-wide Contributing Guide. You'll find most of your questions answered there. Some questions may be answered in the FAQ, as well.

If you want to code but don't know where to start, check out the issues labelled "help wanted".

License

MIT Haja Networks Oy, OrbitDB Community