kornrunner/ethereum-address 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

kornrunner/ethereum-address

最新稳定版本:v0.4.0

Composer 安装命令:

composer require kornrunner/ethereum-address

包简介

Pure PHP Ethereum Address Generator / Validator

README 文档

README

$ composer require kornrunner/ethereum-address

Usage

Create a new address:

<?php

require_once 'vendor/autoload.php';

use kornrunner\Ethereum\Address;

$address = new Address();

// get address
$address->get();
// 4e1c45599f667b4dc3604d69e43722d4ace6b770

$address->getPrivateKey();
// 33eb576d927573cff6ae50a9e09fc60b672a8dafdfbe3045c7f62955fc55ccb4

$address->getPublicKey();
// 20876c03fff2b09ea01861f3b3789ada54a20a8c5e90170618364cbb02d8e6408401e120158f489376a1db3f8cde24f9432976d2f89aeb193fb5becc094a28b9

Or load one from private key:

<?php

require_once 'vendor/autoload.php';

use kornrunner\Ethereum\Address;

$privateKey = '33eb576d927573cff6ae50a9e09fc60b672a8dafdfbe3045c7f62955fc55ccb4';
$address = new Address($privateKey);

// get address
$address->get();
// 4e1c45599f667b4dc3604d69e43722d4ace6b770

$address->getPrivateKey();
// 33eb576d927573cff6ae50a9e09fc60b672a8dafdfbe3045c7f62955fc55ccb4

$address->getPublicKey();
// 20876c03fff2b09ea01861f3b3789ada54a20a8c5e90170618364cbb02d8e6408401e120158f489376a1db3f8cde24f9432976d2f89aeb193fb5becc094a28b9

License

MIT

Crypto

Ethereum 0x9c7b7a00972121fb843af7af74526d7eb585b171

统计信息

  • 总下载量: 93.25k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 40
  • 点击次数: 1
  • 依赖项目数: 10
  • 推荐数: 0

GitHub 信息

  • Stars: 40
  • Watchers: 5
  • Forks: 18
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-07-31