secp256k1 wrapped with cffi to use with python
Project description
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 and recover from the secp256k1 bitcoin lib used like this:
sig = secp256k1_ecdsa_sign(msg32, seckey) pubkey = secp256k1_ecdsa_recover(msg32, sig)
Installation
Clone repo:
git clone https://github.com/czepluch/pysecp256k1.git
Development
To install:
python setup.py develop
Install
To install package:
python setup.py install
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
c_secp256k1-0.0.7.tar.gz
(284.3 kB
view details)
File details
Details for the file c_secp256k1-0.0.7.tar.gz
.
File metadata
- Download URL: c_secp256k1-0.0.7.tar.gz
- Upload date:
- Size: 284.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6762b055de9f64ea0cc4fb66b106ea7eb93236db9bcf22f35281255d20d3569a |
|
MD5 | 098cde76a3f6bf01e52f8963464fe87b |
|
BLAKE2b-256 | 1db44f6a919f8f7acc17f8c8a2484bb03676c629ddfa7a6274a549657dca1102 |