Options
All
  • Public
  • Public/Protected
  • All
Menu

Module key-did-resolver

did:key method resolver

This package contains did:key method resolver implementation

Installation

$ npm install key-did-resolver

Contributing

We are happy to accept small and large contributions. Make sure to check out the Ceramic specifications for details of how the protocol works.

License

Index

Variables

Const DID_JSON

DID_JSON: "application/did+json" = "application/did+json"

Const DID_LD_JSON

DID_LD_JSON: "application/did+ld+json" = "application/did+ld+json"

Functions

encodeKey

  • encodeKey(key: Uint8Array): string

getResolver

  • getResolver(): ResolverRegistry

keyToDidDoc

  • keyToDidDoc(pubKeyBytes: Uint8Array, fingerprint: string): any

keyToDidDoc

  • keyToDidDoc(pubKeyBytes: Uint8Array, fingerprint: string): any

Object literals

Const prefixToDriverMap

prefixToDriverMap: object

231

231: "/home/runner/work/js-ceramic/js-ceramic/packages/key-did-resolver/src/secp256k1" = secp256k1

237

237: "/home/runner/work/js-ceramic/js-ceramic/packages/key-did-resolver/src/ed25519" = ed25519