Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

secp256k1 wrapped with cffi to use with python

Project Description

Bitcoin secp256k1 C library wrapped with CFFI to use with Python2 and PyPy2.


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


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)


On Ubuntu:

$ sudo apt-get install libssl-dev libffi-dev libtool


Clone repo:

git clone


To install package:

python install


To install:

python develop


To test and install test dependenceis:

python test

Generate source & binary pakacages

To generate installable source and binary packages:

python sdist bdist_wheel
Release History

Release History

This version
History Node


History Node


History Node


Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
c_secp256k1-0.0.8.tar.gz (284.4 kB) Copy SHA256 Checksum SHA256 Source Nov 25, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting