Registry / crypto / kornrunner-secp256k1

kornrunner-secp256k1

JSON →
library0.4.0phppackagistunverified

Pure PHP secp256k1

composer require kornrunner/secp256k1
INSTALL
IMPORT
SIG · KORNRUNNER-SECP256
K
kornrunner-secp256k1
cryptophpv0.4.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Secp256k1
use kornrunner\Secp256k1\Secp256k1;

Generate a public key from a private key

<?php require_once 'vendor/autoload.php'; use kornrunner\Secp256k1\Secp256k1; $secp256k1 = new Secp256k1(); $public = $secp256k1->publicKeyCreate(hex2bin('0000000000000000000000000000000000000000000000000000000000000001')); echo bin2hex($public);
Debug
Known issues
gotchaPure PHP implementation is significantly slower than native C extensions
fix
Install php-secp256k1 extension for production use
affects: >=0.1.0
Upgrade
Version history
0.4.0latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
10 hits · last 30 days
node
8
Resources
kornrunner-secp256k1 — pip install kornrunner-secp256k1 · libregistry