2017 © Pedro Peláez
 

library bitcoin-lib

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

image

blocktrail/bitcoin-lib

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

  • Thursday, November 12, 2015
  • by blocktrail
  • Repository
  • 5 Watchers
  • 0 Stars
  • 5,619 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 60 Forks
  • 0 Open issues
  • 45 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

12/11 2015

dev-lowS

dev-lowS

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

02/11 2015

dev-blocktrail

dev-blocktrail

Fork of bitwasp/bitcoin-lib to be able to publish and use unmerged pull requests.

  Sources   Download

Unlicense

The Requires

 

The Development Requires

php bitcoin transactions cryptocurrency btc bip32 electrum ecc hd wallet

02/11 2015

v1.0.20

1.0.20.0

Fork of bitwasp/bitcoin-lib to be able to publish and use unmerged pull requests.

  Sources   Download

Unlicense

The Requires

 

The Development Requires

php bitcoin transactions cryptocurrency btc bip32 electrum ecc hd wallet

31/07 2015

v1.0.19

1.0.19.0

Fork of bitwasp/bitcoin-lib to be able to publish and use unmerged pull requests.

  Sources   Download

Unlicense

The Requires

 

The Development Requires

php bitcoin transactions cryptocurrency btc bip32 electrum ecc hd wallet

31/07 2015

dev-pay-to-scriptPubKey

dev-pay-to-scriptPubKey

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

31/07 2015

dev-multiple-outputs

dev-multiple-outputs

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

26/06 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

26/06 2015

v1.2.2

1.2.2.0

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

25/06 2015

v1.2.1

1.2.1.0

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

25/06 2015

v1.0.18

1.0.18.0

Fork of bitwasp/bitcoin-lib to be able to publish and use unmerged pull requests.

  Sources   Download

Unlicense

The Requires

 

The Development Requires

php bitcoin transactions cryptocurrency btc bip32 electrum ecc hd wallet

03/06 2015

v1.0.17

1.0.17.0

Fork of bitwasp/bitcoin-lib to be able to publish and use unmerged pull requests.

  Sources   Download

Unlicense

The Requires

 

The Development Requires

php bitcoin transactions cryptocurrency btc bip32 electrum ecc hd wallet

03/06 2015

dev-decode-scriptpubkey-match-bitcoin-core

dev-decode-scriptpubkey-match-bitcoin-core

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

03/06 2015

v1.0.16

1.0.16.0

Fork of bitwasp/bitcoin-lib to be able to publish and use unmerged pull requests.

  Sources   Download

Unlicense

The Requires

 

The Development Requires

php bitcoin transactions cryptocurrency btc bip32 electrum ecc hd wallet

03/06 2015

dev-decode-scriptpubkey

dev-decode-scriptpubkey

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

11/05 2015

v1.0.15

1.0.15.0

Fork of bitwasp/bitcoin-lib to be able to publish and use unmerged pull requests.

  Sources   Download

Unlicense

The Requires

 

The Development Requires

php bitcoin transactions cryptocurrency btc bip32 electrum ecc hd wallet

11/05 2015

dev-fix-tx-parsing-versions

dev-fix-tx-parsing-versions

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

07/05 2015

dev-fix-script-parsing3

dev-fix-script-parsing3

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

07/05 2015

v1.0.14

1.0.14.0

Fork of bitwasp/bitcoin-lib to be able to publish and use unmerged pull requests.

  Sources   Download

Unlicense

The Requires

 

The Development Requires

php bitcoin transactions cryptocurrency btc bip32 electrum ecc hd wallet

09/04 2015

dev-friulcoin

dev-friulcoin

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

09/04 2015

v1.0.13

1.0.13.0

Fork of bitwasp/bitcoin-lib to be able to publish and use unmerged pull requests.

  Sources   Download

Unlicense

The Requires

 

The Development Requires

php bitcoin transactions cryptocurrency btc bip32 electrum ecc hd wallet

09/04 2015

dev-fix-script-parsing2

dev-fix-script-parsing2

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

09/04 2015

v1.0.12

1.0.12.0

Fork of bitwasp/bitcoin-lib to be able to publish and use unmerged pull requests.

  Sources   Download

Unlicense

The Requires

 

The Development Requires

php bitcoin transactions cryptocurrency btc bip32 electrum ecc hd wallet

08/04 2015

dev-fix-script-parsing

dev-fix-script-parsing

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

03/04 2015

dev-revert-phpecc

dev-revert-phpecc

Fork of bitwasp/bitcoin-lib to be able to publish and use unmerged pull requests.

  Sources   Download

Unlicense

The Requires

 

The Development Requires

php bitcoin transactions cryptocurrency btc bip32 electrum ecc hd wallet

03/04 2015

v1.0.11

1.0.11.0

Fork of bitwasp/bitcoin-lib to be able to publish and use unmerged pull requests.

  Sources   Download

Unlicense

The Requires

 

The Development Requires

php bitcoin transactions cryptocurrency btc bip32 electrum ecc hd wallet

03/04 2015

dev-fix-tx-encode

dev-fix-tx-encode

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

25/03 2015

dev-full-tx-example

dev-full-tx-example

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

24/03 2015

dev-use-math-cmp

dev-use-math-cmp

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

18/03 2015

dev-multisig-example

dev-multisig-example

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

09/03 2015

1.2.0

1.2.0.0

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

04/03 2015

dev-txid

dev-txid

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

02/03 2015

dev-mv-example.php

dev-mv-example.php

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

02/03 2015

dev-decode-strlen

dev-decode-strlen

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/02 2015

dev-throw-more-again

dev-throw-more-again

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/02 2015

dev-fixMoreScrutinizerBugs

dev-fixMoreScrutinizerBugs

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/02 2015

dev-test-cleanup

dev-test-cleanup

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

18/02 2015

1.1.0

1.1.0.0

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

04/02 2015

v1.0.10

1.0.10.0

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

04/02 2015

v1.0.9

1.0.9.0

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

04/02 2015

v1.0.8

1.0.8.0

Fork of bitwasp/bitcoin-lib to be able to publish and use unmerged pull requests.

  Sources   Download

Unlicense

The Requires

 

The Development Requires

php bitcoin transactions cryptocurrency btc bip32 electrum ecc hd wallet

07/01 2015

v1.0.7

1.0.7.0

Fork of bitwasp/bitcoin-lib to be able to publish and use unmerged pull requests.

  Sources   Download

Unlicense

The Requires

 

The Development Requires

php bitcoin transactions cryptocurrency btc bip32 electrum ecc hd wallet

06/01 2015

v1.0.6

1.0.6.0

Fork of bitwasp/bitcoin-lib to be able to publish and use unmerged pull requests.

  Sources   Download

Unlicense

The Requires

 

The Development Requires

php bitcoin transactions cryptocurrency btc bip32 electrum ecc hd wallet

31/12 2014

v1.0.5

1.0.5.0

Fork of bitwasp/bitcoin-lib to be able to publish and use unmerged pull requests.

  Sources   Download

Unlicense

The Requires

 

The Development Requires

php bitcoin transactions cryptocurrency btc bip32 electrum ecc hd wallet

11/12 2014

v1.0.4

1.0.4.0

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

11/12 2014

v1.0.2

1.0.2.0

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