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
Metadata
Release files for c_secp256k1 0.0.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| c_secp256k1-0.0.8.tar.gz | 284.4 kB | Without provenance | Details |
Release files / c_secp256k1-0.0.8.tar.gz
| Download URL | c_secp256k1-0.0.8.tar.gz |
|---|---|
| Size | 284.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f8a5eed1cbc47dbf07c06adf0c111759121486bfb99313c5665fa379d9179ee0
|
|
BLAKE2b-256 checksum How to use checksums |
e50399aedf740583e3c20cb01b7f90b476178c8de82d950cf180084cd50ef350
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for c_secp256k1 0.0.8
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.