Registry / crypto / bitwasp-bitcoin

bitwasp-bitcoin

JSON →
library1.1.0phppackagistunverified

PHP Bitcoin library with functions for transactions, signatures, serialization, ECDSA keys, blocks, and RPC bindings.

composer require bitwasp/bitcoin
INSTALL
IMPORT
SIG · BITWASP-BITCOIN
B
bitwasp-bitcoin
cryptophpv1.1.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Bitcoin
use BitWasp\Bitcoin\Bitcoin;

Create a private key and derive its public address.

use BitWasp\Bitcoin\Bitcoin; use BitWasp\Bitcoin\Key\Factory\PrivateKeyFactory; $network = Bitcoin::getNetwork(); $privateKey = PrivateKeyFactory::fromHex('...'); echo $privateKey->getPublicKey()->getAddress()->getAddress();
Debug
Known issues
breakingRequires PHP 7.2+ and GMP extension.
fix
Install PHP 7.2+ and enable GMP extension.
affects: <1.0.0
Upgrade
Version history
1.1.0latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
18 hits · last 30 days
node
14
Meta
1
Amazon
1
Resources
bitwasp-bitcoin — pip install bitwasp-bitcoin · libregistry