2017 © Pedro Peláez
 

library secp256k1-php

PHP Extension with bindings for bitcoin/secp256k1.

image

bitwasp/secp256k1-php

PHP Extension with bindings for bitcoin/secp256k1.

  • Saturday, July 14, 2018
  • by thomaskerin
  • Repository
  • 7 Watchers
  • 32 Stars
  • 58,354 Installations
  • PHP
  • 7 Dependents
  • 0 Suggesters
  • 13 Forks
  • 8 Open issues
  • 23 Versions
  • 17 % Grown

The README.md

secp256k1-php

Build Status codecov, (*1)

PHP bindings for https://github.com/bitcoin-core/secp256k1, (*2)

Please note that the upstream library, libsecp256k1 is still considered experimental by it's authors, and has not yet been formally released. For this reason, it's use should be discouraged. For consensus systems this warning is critical., (*3)

The library supports the EcDH, and signature recovery modules - these libraries are required for installation., (*4)

Requirements

PHP 5.* versions are supported in the v0.0.x release. PHP 7 is supported in the v0.1.x series., (*5)

About the extension

  • Fully unit tested, with >99 code coverage since the v0.1.3 release.
  • This extension only supports deterministic signatures at present. In fact, no RNG is utilized in this extension - private keys must be generated elsewhere.
  • The extension exposes the same raw API of libsecp256k1. As such, you must ensure you are passing the binary representations of each value.
  • In keeping with libsecp256k1, this extension returns certain data to the user by writing to a variable reference, and returning a code indicating the failure/success.

To Install:

libsecp256k1:, (*6)

    git clone git@github.com:bitcoin-core/secp256k1 && \
    cd secp256k1 &&                                    \
    ./autogen.sh &&                                    \
    ./configure --enable-experimental --enable-module-{ecdh,recovery} && \
     make &&                                           \
     sudo make install &&                              \
     cd ../

secp256k1-php:, (*7)

    git clone git@github.com:Bit-Wasp/secp256k1-php && \
    cd secp256k1-php/secp256k1 &&                      \
    phpize &&                                          \ 
    ./configure --with-secp256k1 &&                    \  
    make && sudo make install &&                       \
    cd ../../

Examples

See the examples folder, or the *_basic.phpt files in the test suite, (*8)

(Optional) - Enable extension by default!

If you're a heavy user, you can add this line to your php.ini files for php-cli, apache2, or php-fpm., (*9)

/etc/php/7.0/cli/conf.d/20-secp256k1.ini -> /etc/php/7.0/mods-available/secp256k1.ini, (*10)

extension=secp256k1.so

Run Tests

(Commands issued from secp256k1-php directory), (*11)

Basic tests:, (*12)

cd secp256k1-php/secp256k1 && make test

The Versions

14/07 2018

v0.2.x-dev

0.2.9999999.9999999-dev

PHP Extension with bindings for bitcoin/secp256k1.

  Sources   Download

Unlicense

The Requires

  • php ^7.0

 

extension php bitcoin ecdsa secp256k1 cryptocurrency ecc bitwasp

14/07 2018

v0.2.1

0.2.1.0

PHP Extension with bindings for bitcoin/secp256k1.

  Sources   Download

Unlicense

The Requires

  • php ^7.0

 

extension php bitcoin ecdsa secp256k1 cryptocurrency ecc bitwasp

14/07 2018

dev-master

9999999-dev

PHP Extension with bindings for bitcoin/secp256k1.

  Sources   Download

Unlicense Unlicence

The Requires

  • php ^7.0

 

The Development Requires

extension php bitcoin ecdsa secp256k1 cryptocurrency ecc bitwasp

12/07 2018

v0.2.0

0.2.0.0

PHP Extension with bindings for bitcoin/secp256k1.

  Sources   Download

Unlicense

extension php bitcoin ecdsa secp256k1 cryptocurrency ecc bitwasp

12/07 2018

0.2.0.x-dev

0.2.0.9999999-dev

PHP Extension with bindings for bitcoin/secp256k1.

  Sources   Download

Unlicense

extension php bitcoin ecdsa secp256k1 cryptocurrency ecc bitwasp

18/03 2018

v0.1.x-dev

0.1.9999999.9999999-dev

PHP Extension with bindings for bitcoin/secp256k1.

  Sources   Download

Unlicense Unlicence

The Development Requires

extension php bitcoin ecdsa secp256k1 cryptocurrency ecc bitwasp

18/02 2018

v0.0.x-dev

0.0.9999999.9999999-dev

PHP Extension with bindings for bitcoin/secp256k1.

  Sources   Download

Unlicense Unlicence

The Development Requires

extension php bitcoin ecdsa secp256k1 cryptocurrency ecc bitwasp

17/02 2018

v0.1.3

0.1.3.0

PHP Extension with bindings for bitcoin/secp256k1.

  Sources   Download

Unlicense

The Development Requires

extension php bitcoin ecdsa secp256k1 cryptocurrency ecc bitwasp

09/03 2017

v0.1.2

0.1.2.0

PHP Extension with bindings for bitcoin/secp256k1.

  Sources   Download

Unlicence

The Development Requires

extension php bitcoin ecdsa secp256k1 cryptocurrency ecc bitwasp

28/11 2016

v0.0.9

0.0.9.0

PHP Extension with bindings for bitcoin/secp256k1.

  Sources   Download

Unlicence

The Development Requires

extension php bitcoin ecdsa secp256k1 cryptocurrency ecc bitwasp

28/11 2016

v0.1.1

0.1.1.0

PHP Extension with bindings for bitcoin/secp256k1.

  Sources   Download

Unlicence

The Development Requires

extension php bitcoin ecdsa secp256k1 cryptocurrency ecc bitwasp

16/07 2016

v0.1.0

0.1.0.0

PHP Extension with bindings for bitcoin/secp256k1.

  Sources   Download

Unlicence

The Development Requires

extension php bitcoin ecdsa secp256k1 cryptocurrency ecc bitwasp

16/07 2016

v0.0.8

0.0.8.0

PHP Extension with bindings for bitcoin/secp256k1.

  Sources   Download

Unlicence

The Development Requires

extension php bitcoin ecdsa secp256k1 cryptocurrency ecc bitwasp

04/03 2016

v0.0.7

0.0.7.0

PHP Extension with bindings for bitcoin/secp256k1.

  Sources   Download

Unlicence

The Development Requires

extension php bitcoin ecdsa secp256k1 cryptocurrency ecc bitwasp

26/10 2015

v0.0.6.2

0.0.6.2

PHP Extension with bindings for bitcoin/secp256k1.

  Sources   Download

Unlicence

The Development Requires

extension php bitcoin ecdsa secp256k1 cryptocurrency ecc bitwasp

29/09 2015

v0.0.5.2

0.0.5.2

PHP Extension with bindings for bitcoin/secp256k1.

  Sources   Download

Unlicence

The Development Requires

extension php bitcoin ecdsa secp256k1 cryptocurrency ecc bitwasp

29/09 2015

v0.0.6.1

0.0.6.1

PHP Extension with bindings for bitcoin/secp256k1.

  Sources   Download

Unlicence

The Development Requires

extension php bitcoin ecdsa secp256k1 cryptocurrency ecc bitwasp

10/09 2015

v0.0.5.1

0.0.5.1

PHP Extension with bindings for bitcoin/secp256k1.

  Sources   Download

Unlicence

The Development Requires

extension php bitcoin ecdsa secp256k1 cryptocurrency ecc bitwasp

10/09 2015

v0.0.6

0.0.6.0

PHP Extension with bindings for bitcoin/secp256k1.

  Sources   Download

Unlicence

The Development Requires

extension php bitcoin ecdsa secp256k1 cryptocurrency ecc bitwasp

31/08 2015

v0.0.5

0.0.5.0

PHP Extension with bindings for bitcoin/secp256k1.

  Sources   Download

Unlicence

The Development Requires

extension php bitcoin ecdsa secp256k1 cryptocurrency ecc bitwasp

31/08 2015

v0.0.4

0.0.4.0

PHP Extension with bindings for bitcoin/secp256k1.

  Sources   Download

Unlicence

The Development Requires

extension php bitcoin ecdsa secp256k1 cryptocurrency ecc bitwasp

30/08 2015

v0.0.3

0.0.3.0

PHP Extension with bindings for bitcoin/secp256k1.

  Sources   Download

Unlicence

The Development Requires

extension php bitcoin ecdsa secp256k1 cryptocurrency ecc bitwasp

09/05 2015

v0.0.1

0.0.1.0

PHP Extension with bindings for bitcoin/secp256k1.

  Sources   Download

Unlicence

The Development Requires

extension php bitcoin ecdsa secp256k1 cryptocurrency ecc bitwasp