c_secp256k1-0.0.8
توضیحات
secp256k1 wrapped with cffi to use with python
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | c_secp256k1-0.0.8 |
| نام | c_secp256k1 |
| نسخه کتابخانه | 0.0.8 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Jacob Stenum Czepluch |
| ایمیل نویسنده | j.czepluch@gmail.com |
| آدرس صفحه اصلی | https://github.com/czepluch/pysecp256k1 |
| آدرس اینترنتی | https://pypi.org/project/c_secp256k1/ |
| مجوز | MIT |
Bitcoin secp256k1 C library wrapped with CFFI to use with Python2 and PyPy2.
Benchmarks
----------
These results are achieved on an Intel Core i5-4200U CPU @ 1.6GHz::
cffi took: 0.75secs / 74μs per op / 13391 signs per sec
cffi took: 1.09secs / 109μs per op / 9170 recovers per sec
Usage
-----
This library offers sign, recover and verify from the secp256k1 bitcoin lib used like this::
sig = ecdsa_sign_raw(msg32, seckey)
pubkey = ecdsa_recover_raw(msg32, sig)
ecdsa_verify_raw(msg32, sig, pubkey)
Dependencies
------------
On Ubuntu::
$ sudo apt-get install libssl-dev libffi-dev libtool
Installation
------------
Clone repo::
git clone https://github.com/czepluch/pysecp256k1.git
Install
-------
To install package::
python setup.py install
Development
-----------
To install::
python setup.py develop
Test
----
To test and install test dependenceis::
python setup.py test
Generate source & binary pakacages
----------------------------------
To generate installable source and binary packages::
python setup.py sdist bdist_wheel
نحوه نصب
نصب پکیج whl c_secp256k1-0.0.8:
pip install c_secp256k1-0.0.8.whl
نصب پکیج tar.gz c_secp256k1-0.0.8:
pip install c_secp256k1-0.0.8.tar.gz