imanrjb / hd-wallet
HD wallet for multiple cryptocurrencies
v1.1.4
2022-07-12 10:06 UTC
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');