matronator/c32check
最新稳定版本:v0.1.0
Composer 安装命令:
composer require matronator/c32check
包简介
PHP library for encoding and decoding C32Check addresses
README 文档
README
PHP library for encoding and decoding C32 addresses which are used on the Stacks blockchain. It provides functionality to convert between base-58 encoded strings and their underlying byte representations, including checksum verification.
Requirements
- PHP 8.0 or higher
- Composer
Installation
composer require matronator/c32check
Usage
use Matronator\C32Check\Address; $version = 22; $hexString = '0x1e2a7c8a7e0d61c7a7d679c4e0c8f2e7'; $address = new Address($version, $hexString); echo $address->toBase58Address(); // 1BvBMSEYstWetqTFn5Au4m4GFg7xJaNVN2 echo $address->toC32Address(); // ST1BvBMSEYstWetqTFn5Au4m4GFg7xJaNVN2Z
Testing
composer test
License
This project is licensed under the MIT License - see the LICENSE file for details.
Acknowledgements
统计信息
- 总下载量: 10
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-06-01