imanrjb / hd-wallet
HD wallet for multiple cryptocurrencies
Installs: 50
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 0
pkg:composer/imanrjb/hd-wallet
Requires
- php-64bit: *
 - ext-bcmath: *
 - ext-openssl: *
 - imanrjb/bitcoin-php: ^1.0
 - kornrunner/keccak: ^1.1
 - simplito/elliptic-php: ^1.0
 - sop/asn1: ^4.1
 - sop/crypto-types: ^0.3.0
 
README
How to install
composer require imanrjb/hd-wallet
Put below parameters in .env file
(XPRV is only used in private key generation)
BTC_XPUB= ERC_XPUB= TRC_XPUB= BTC_XPRV= ERC_XPRV= TRC_XPRV=
Generate address using network and HD path
return AddressGenerator::getNewAddress('btc', '0/0');
Generate private key and address using network and HD path
return PrivateKeyGenerator::getAddressWithPrivateKey('btc', '0/0');
Supported networks:
| Network | Symbol | 
|---|---|
| Bitcoin | btc | 
| Ethereum | erc | 
| Tron | trc |