furqansiddiqui / ecdsa-php
ECDSA (Elliptic Curves) lib for PHP
Installs: 18 126
Dependents: 6
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 3
Open Issues: 0
Requires
- php-64bit: ^8.1
- ext-curl: *
- ext-gmp: *
- charcoal-dev/buffers: ^0.1.0
README
You are welcome to use this at your own risk. No liabilities, no warranty, check LICENSE file.
ECDSA lib for PHP
Easy interface and to the point API for following curves and features:
- Secp256k1 (using GMP calculations)
- Secp256k1_RPC (using bitcoin's original libsecp256k1 written in C lang, requires furqansiddiqui/secp256k1-rpc RPC server)
- Built-in support for RFC6979 for generation of deterministic yet secure
k
nonce.
Prerequisites
- PHP ^8.2
- ext-gmp
- ext-curl (for furqansiddiqui/secp256k1-rpc)
Installation
composer require furqansiddiqui/ecdsa-php
Documentation
KeyPair
PublicKey
$pub = PublicKey::fromDER(Buffer::fromBase16("hex-string"))