andkom/php-bitcoin-wallet
Composer 安装命令:
composer require andkom/php-bitcoin-wallet
包简介
A simple PHP library for reading Bitcoin wallet.dat file.
README 文档
README
A simple PHP library for reading Bitcoin wallet.dat file.
Installation
composer require andkom/php-bitcoin-wallet
Usage
<?php use AndKom\Bitcoin\Wallet\Wallet; // create wallet instance $wallet = new Wallet(); $wallet->read("/path/to/wallet.dat"); // check if wallet is encrypted if ($wallet->isEncrypted()) { // print wallet master key echo $wallet->getMasterKey()->getEncryptedKey() . "\n"; // decrypt wallet $wallet->decrypt("password"); } // print stored keys foreach ($wallet->getKeys() as $key) { echo $key->getPrivateKey()->toWif() . " => " . $key->getPublicKey()->getAddress()->getAddress() . "\n"; }
统计信息
- 总下载量: 67
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 18
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-07-19