dan-da/coinparams-bitwasp-addon
最新稳定版本:v0.0.2
Composer 安装命令:
composer require dan-da/coinparams-bitwasp-addon
包简介
These are addon classes to integrate bitwasp bitcoin-php with coinparams for multicoin functionality.
README 文档
README
These are addon classes to integrate bitwasp bitcoin-php with coinparams for multicoin functionality.
This library adds two classes:
- MultiCoinNetwork extends BitWasp\Bitcoin\Network\Network and provides address prefixes, etc.
- MultiCoinRegistry extends BitWasp\Bitcoin\Key\Deterministic\Slip132\PrefixRegistry and provides xpub/ypub,zpub extended key prefixes.
These classes accept string arguments [symbol,network] to automatically load prefixes from coinparams.json. The classes can then be used anywhere that Network or PrefixRegistry would normally be used.
See the examples and tests directory for usage.
note: Litecoin has irregular extended key prefixes. See examples/bip39 for details.
Installation
$ cd <yourproject>
$ composer require dan-da/coinparams-bitwasp-addon
Run some tests.
$ cd vendor/dan-da/coinparams-bitwasp-addon/tests
$ ./tester.php
Run some examples.
$ cd vendor/dan-da/coinparams-bitwasp-addon/examples
$ php bip39.php
etc, etc.
统计信息
- 总下载量: 658
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 7
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unlicense
- 更新时间: 2018-07-22