furqansiddiqui/ecdsa-php

ECDSA (Elliptic Curves) lib for PHP

0.4.0 2024-08-05 19:44 UTC

This package is auto-updated.

Last update: 2024-11-05 20:29:06 UTC


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

Installation

composer require furqansiddiqui/ecdsa-php

Documentation

KeyPair

PublicKey

$pub = PublicKey::fromDER(Buffer::fromBase16("hex-string"))

Signature

EllipticCurveInterface

Difference in Secp256k1 variants