jwk-multibase-key-converter
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

JWK Multibase Key Converter

Version Downloads/week License

Information

This library is a tool to assist in the conversion of did:key method keys to JWK, and vice versa. It utilizes Multiformats and the NodeJS crypto module to aid in these conversions and is built for JWKs made using the JOSE library (but should work with JWKs that meet the standard). All algorithm strings follow the JOSE specified names that can be found here.

For more information on the did:key spec, please read the current unofficial draft here.

Currently, the only supported curves are as follows:

  • secp256k1 (specified as the ES256K algorithm)
  • nistp384 (specified as ES384 algorithm)

Requirements

  • NodeJS v16+
  • NPM v8+

Installation

You can install this library via NPM :

npm i jwk-multibase-key-converter

How It Works

Contribute

Please open a pull request.

License

This software is release under MIT license.

Readme

Keywords

none

Package Sidebar

Install

npm i jwk-multibase-key-converter

Weekly Downloads

5

Version

1.0.0

License

MIT

Unpacked Size

17 kB

Total Files

11

Last publish

Collaborators

  • vpsqr-protocol