Download the PHP package nimiq/xpub without Composer
On this page you can find all versions of the php package nimiq/xpub. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Vendor nimiq
Package xpub
Short Description A simple class to derive BTC and ETH extended public keys and addresses without GMP.
License Apache-2.0
Homepage https://github.com/nimiq/php-xpub
Package xpub
Short Description A simple class to derive BTC and ETH extended public keys and addresses without GMP.
License Apache-2.0
Homepage https://github.com/nimiq/php-xpub
Please rate this library. Is it a good library?
Informations about the package xpub
Nimiq XPub
A simple class to derive BTC and ETH extended public keys and addresses without GMP. Only the BCMath extension is required (but GMP is still used for faster calculations when available).
Supports the following formats:
Type | Mainnet | Testnet |
---|---|---|
BIP44 (standard) | xpub | tpub |
BIP49 (nested segwit) | ypub | upub |
BIP84 (native segwit) | zpub | vpub |
Installation
The Nimiq XPub package is availabe via the Packagist package registry and can be installed with Composer:
Requirements
- PHP >= 7.1
- BCMath or GMP extension
Usage
See the tests for further example usage.
Conversion
You can use this library to convert between xpub formats, for example:
Helpers
The XPub
class also exposes two common hashing methods:
Development
Testing
To execute the test suite run:
All versions of xpub with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.1
ext-bcmath Version *
simplito/elliptic-php Version ^1.0
stephenhill/base58 Version ^1.1
kornrunner/keccak Version ^1.0
bitwasp/bech32 Version ^0.0.1
ext-bcmath Version *
simplito/elliptic-php Version ^1.0
stephenhill/base58 Version ^1.1
kornrunner/keccak Version ^1.0
bitwasp/bech32 Version ^0.0.1
The package nimiq/xpub contains the following files
Loading the files please wait ....