All Projects → Bit-Wasp → secp256k1-php

Bit-Wasp / secp256k1-php

Licence: Unlicense license
PHP bindings for bitcoin-core/secp256k1

Programming Languages

PHP
23972 projects - #3 most used programming language
c
50402 projects - #5 most used programming language
shell
77523 projects
Dockerfile
14818 projects
C++
36643 projects - #6 most used programming language
M4
1887 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to secp256k1-php

go
Elliptic Curve Integrated Encryption Scheme for secp256k1 in Golang
Stars: ✭ 56 (+1.82%)
Mutual labels:  secp256k1
oxo-chat-app
基于websocket、json、blockchain的公告、聊天(客户端到客户端加密)客户端。账号无需注册,本地生成!
Stars: ✭ 20 (-63.64%)
Mutual labels:  secp256k1
xhprof
PHP7/PHP8 support
Stars: ✭ 877 (+1494.55%)
Mutual labels:  php-extension
pdo sqlcipher
SQLCipher PDO (PHP Data Objects) driver
Stars: ✭ 17 (-69.09%)
Mutual labels:  php-extension
zephir-docs
Zephir Documentation and website
Stars: ✭ 62 (+12.73%)
Mutual labels:  php-extension
js
Elliptic Curve Integrated Encryption Scheme for secp256k1 in TypeScript
Stars: ✭ 64 (+16.36%)
Mutual labels:  secp256k1
php-mustache
Mustache PHP Extension
Stars: ✭ 55 (+0%)
Mutual labels:  php-extension
eth.rb
a straightforward library to build, sign, and broadcast ethereum transactions anywhere you can run ruby.
Stars: ✭ 111 (+101.82%)
Mutual labels:  secp256k1
Tensor
A library and extension that provides objects for scientific computing in PHP.
Stars: ✭ 146 (+165.45%)
Mutual labels:  php-extension
hazmat-math
Hazmat ECC arithmetic for Cryptography.io
Stars: ✭ 28 (-49.09%)
Mutual labels:  secp256k1
php-to-zephir
Convert PHP 7 files to Zephir zep files and create a native PHP extension
Stars: ✭ 25 (-54.55%)
Mutual labels:  php-extension
py
Elliptic Curve Integrated Encryption Scheme for secp256k1 in Python
Stars: ✭ 97 (+76.36%)
Mutual labels:  secp256k1
learn-computer
PHP函数源码分析、计算机相关知识
Stars: ✭ 13 (-76.36%)
Mutual labels:  php-extension
php-document-creator
a document creator for php extension.一个用于生成PHP扩展文档的工具
Stars: ✭ 25 (-54.55%)
Mutual labels:  php-extension
noble-secp256k1
Fastest JS implementation of secp256k1. Independently audited, high-security, 0-dependency ECDSA & Schnorr signatures.
Stars: ✭ 313 (+469.09%)
Mutual labels:  secp256k1
ethereum-checksum-address
Convert Ethereum address to a checksummed address
Stars: ✭ 20 (-63.64%)
Mutual labels:  secp256k1
skeleton-php-ext
Skeleton project for PHP extension (written in C)
Stars: ✭ 24 (-56.36%)
Mutual labels:  php-extension
PHP-CPP-documentation
The documentation in chinese of PHP-CPP.
Stars: ✭ 35 (-36.36%)
Mutual labels:  php-extension
tast-process
An extension providing multi process for PHP 7
Stars: ✭ 27 (-50.91%)
Mutual labels:  php-extension
go-secp256k1
Go wrapper for secp256k1
Stars: ✭ 35 (-36.36%)
Mutual labels:  secp256k1

secp256k1-php

Build Status codecov

PHP bindings for https://github.com/bitcoin-core/secp256k1

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.

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

Requirements

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

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:

    git clone [email protected]:bitcoin-core/secp256k1 && \
    cd secp256k1 &&                                    \
    ./autogen.sh &&                                    \
    ./configure --enable-experimental --enable-module-{ecdh,recovery} && \
     make &&                                           \
     sudo make install &&                              \
     cd ../

secp256k1-php:

    git clone [email protected]: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

(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.

/etc/php/7.0/cli/conf.d/20-secp256k1.ini -> /etc/php/7.0/mods-available/secp256k1.ini

extension=secp256k1.so

Run Tests

(Commands issued from secp256k1-php directory)

Basic tests:

cd secp256k1-php/secp256k1 && make test
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].