All Projects → kornrunner → php-ethereum-address

kornrunner / php-ethereum-address

Licence: MIT license
Pure PHP Ethereum Address Generator

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to php-ethereum-address

Android-Wallet-Token-ERC20
Android Wallet (Token ERC20)
Stars: ✭ 30 (+25%)
Mutual labels:  ethereum-address
Web3j-Android-Ether-Wallet-Ethereum-Client
I developed this project for helping developers to create their own ethereum wallet using Web3j library.
Stars: ✭ 37 (+54.17%)
Mutual labels:  ethereum-address
ETH-transactions-storage
Indexer for Ethereum to get transaction list by ETH address
Stars: ✭ 155 (+545.83%)
Mutual labels:  ethereum-address

php-ethereum-address Tests Coverage Status Latest Stable Version

$ 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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].