public-square/jwk-multibase-key-converter-php
最新稳定版本:v0.1.1
Composer 安装命令:
composer require public-square/jwk-multibase-key-converter-php
包简介
Enables conversion of multibase strings to/from JWK, limited to secp256k1 and P-384. Additionally, has support for did:key method spec.
关键字:
README 文档
README
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
- Multibase Conversion
- did:key Conversion
- Public JWK Conversion
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.
统计信息
- 总下载量: 9
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 5
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-11-22