2017 © Pedro Peláez
 

library bitcoin-lib

Implementation of raw transactions in bitcoin, HD wallets, Electrum wallets, and other fun stuff.

image

visvirial/bitcoin-lib

Implementation of raw transactions in bitcoin, HD wallets, Electrum wallets, and other fun stuff.

  • Tuesday, April 26, 2016
  • by visvirial
  • Repository
  • 1 Watchers
  • 0 Stars
  • 8 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 63 Forks
  • 0 Open issues
  • 9 Versions
  • 0 % Grown

The README.md

bitcoin-lib-php

Gitter, (*1)

PHP libraries implementing bitcoin key functions, as well as BIP32 and electrum., (*2)

The library intends to expose a lot of general functionality which isn't available using the RPC (like deterministic addresses)., (*3)

It also allows you to reduce the number of queries that are made to bitcoind, such as createrawtransaction/signrawtransaction/decoderawtransaction. As such, such, use of bitcoin RPC functionality can be kept to a minimum., (*4)

Libraries

  • Raw Transactions: create, sign, validate, with support for P2SH.
  • Create multi-signature addresses, create redeeming transactions.
  • BIP32: Functions for generating BIP32 deterministic keys.
  • Electrum: Create seed from mnemonic, create MPK from seed, derive public keys from MPK, or private keys from seed.
  • BitcoinLib: The core class, with key functionality, encoding/decoding & validation functions, etc.
  • BIP39: Functions for generating Mnemonic code for generating deterministic keys (possibly password protected)

If this library powers your project and you're feeling tipsy, buy me lunch some day! 1sCVtkEhQmvp3D4K22Pw9xhFPTDWFh8SZ, (*5)

Installation

Installing via Composer (recommended) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~, (*6)

  1. Install Composer in your project:, (*7)

    curl -s http://getcomposer.org/installer | php, (*8)

  2. Create a composer.json file in your project root:, (*9)

    { "require": { "bitwasp/bitcoin-lib": "1.0.*" } }, (*10)

  3. Install via Composer, (*11)

    php composer.phar install, (*12)

Dependencies

Mcrypt Extension (Random data)

The Mcrypt Extension is required for generating random data, it does this internally by using /dev/urandom on unix or CryptGenRandom on windows., (*13)

GMP Extension (Math)

The GMP Extension is required for the crypto math., (*14)

PECL intl extension (BIP39)

The PECL intl extension is required for BIP39 Mnemonic Seeds when a UTF-8 passphrase is used., (*15)

Mdanter's PHP Pure PHP Elliptic Curve Cryptography Library

mdanter/ecc is required for most of the crypto., (*16)

Contributing

Please make sure that all phpunit tests pass (and preferably added new unit tests) and that the coding style passing PSR2 checks: - ./vendor/bin/phpunit - ./vendor/bin/phpcs --standard=./phpcs.xml -n -s ./src/, (*17)

The Versions

26/04 2016

dev-fix-composer

dev-fix-composer

Implementation of raw transactions in bitcoin, HD wallets, Electrum wallets, and other fun stuff.

  Sources   Download

Unlicense

The Requires

 

The Development Requires

php bitcoin transactions cryptocurrency btc bip32 electrum ecc hd wallet

19/04 2015

dev-master

9999999-dev

Implementation of raw transactions in bitcoin, HD wallets, Electrum wallets, and other fun stuff.

  Sources   Download

Unlicense

The Requires

 

The Development Requires

php bitcoin transactions cryptocurrency btc bip32 electrum ecc hd wallet

17/10 2014

dev-fix_tx_validation

dev-fix_tx_validation

Bitcoin library

  Sources   Download

Unlicense

The Requires

 

The Development Requires

16/10 2014

dev-new_phpecc_refactor

dev-new_phpecc_refactor

Bitcoin library

  Sources   Download

Unlicense

The Requires

 

The Development Requires

16/10 2014

dev-phpecc_refactor

dev-phpecc_refactor

Bitcoin library

  Sources   Download

Unlicense

The Requires

 

The Development Requires

29/05 2014

dev-update_readme

dev-update_readme

Bitcoin library

  Sources   Download

Unlicense

The Requires

  • php >=5.3.3
  • ext-gmp *

 

27/05 2014

dev-fix_padding_check

dev-fix_padding_check

Bitcoin library

  Sources   Download

Unlicense

The Requires

  • php >=5.3.3
  • ext-gmp *

 

22/05 2014

dev-remove_some_SigCanonical_checks

dev-remove_some_SigCanonical_checks

Bitcoin library

  Sources   Download

Unlicense

The Requires

  • php >=5.3.3
  • ext-gmp *

 

22/05 2014

dev-fix_transaction_truncated_scriptPubKey

dev-fix_transaction_truncated_scriptPubKey

Bitcoin library

  Sources   Download

Unlicense

The Requires

  • php >=5.3.3
  • ext-gmp *