Download the PHP package public-square/jwk-multibase-key-converter-php without Composer
On this page you can find all versions of the php package public-square/jwk-multibase-key-converter-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download public-square/jwk-multibase-key-converter-php
More information about public-square/jwk-multibase-key-converter-php
Files in public-square/jwk-multibase-key-converter-php
Package jwk-multibase-key-converter-php
Short Description Enables conversion of multibase strings to/from JWK, limited to secp256k1 and P-384. Additionally, has support for did:key method spec.
License MIT
Informations about the package jwk-multibase-key-converter-php
JWK Multibase Key Converter
Information
This library is a tool to assist in the conversion of Multibase/Multicodec strings and did:key method spec keys to JWK, and vice versa. It utilizes Multibase/Multicodec, Simplito-EC, and JWT Framework to aid in these conversions.
For more information on the did:key spec, please read the current unofficial draft here.
Currently, this libary only supports the following curves:
- secp256k1
- nistp384
OpenSSL and Windows
In order for key generation to work on Windows machines, this Installation documentation must be done correctly, specifically regarding openssl.cnf
.
How It Works
- Public JWK Generation
- Generating a Public Key
- Multibase Conversion
- Converting a Multibase Key to a Public JWK
- did:key Conversion
- Converting a did:key to a Public JWK
- Public JWK Conversion
- Converting a Public JWK to a Multibase Key
- Converting a Public JWK to a did:key
Requirements
- >= PHP 8.1
- composer
- ext-gmp
Installation
You can install this library via Composer :
composer require public-square/jwk-multibase-key-converter-php
Contribute
Please open a pull request.
License
This software is release under MIT license.
All versions of jwk-multibase-key-converter-php with dependencies
ext-gmp Version *
public-square/jwt-framework-schnorr Version ^0.1.0
yocto/yoclib-multibase Version ^1.1
simplito/elliptic-php Version ^1.0