Skip to main content

Cross-platform Python libsecp256k1 for ElectrumSV

Project description

Badges went here..


This library provides a wrapped pre-compiled libsecp256k1, the heavily optimized C library used by Bitcoin Core for operations on elliptic curve secp256k1. It effectively encapsulates a libsecp256k1 fork and allows ElectrumSV developers to have a vetted build, with selected public modifications, available on pypi to treat as a first classed dependency which can be obtained and verified against a known hash, like any other Python dependency.

Table of Contents

Features

  • Linux, macOS, and Windows all have binary packages for both 64 and 32-bit architectures

  • Linux & macOS use GMP for faster computation

  • Implements a fix for https://bugs.python.org/issue28150 to support Python 3.6+ on macOS

Installation

electrumsv-secp256k1 is distributed on PyPI and is available on Linux/macOS and Windows and supports Python 3.6 and Python 3.7.

$ pip install electrumsv-secp256k1

If you are on a system that doesn’t have a precompiled binary wheel (e.g. FreeBSD) then pip will fetch source to build yourself. You must have the necessary packages.

On Debian/Ubuntu for example the necessary packages are:

  • build-essential

  • automake

  • pkg-config

  • libtool

  • libgmp-dev (optional)

API

Anything importing this should be familiar with the underlying libsecp256k1 api.

Credits

History

Coincurve history available here.

Project details


Download files

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

Source Distribution

electrumsv-secp256k1-0.9.0.tar.gz (936.8 kB view hashes)

Uploaded Source

Built Distributions

electrumsv_secp256k1-0.9.0-py2.py3-none-win_amd64.whl (230.6 kB view hashes)

Uploaded Python 2 Python 3 Windows x86-64

electrumsv_secp256k1-0.9.0-py2.py3-none-win32.whl (253.1 kB view hashes)

Uploaded Python 2 Python 3 Windows x86

electrumsv_secp256k1-0.9.0-cp37-cp37m-macosx_10_13_x86_64.whl (134.2 kB view hashes)

Uploaded CPython 3.7m macOS 10.13+ x86-64

electrumsv_secp256k1-0.9.0-cp36-cp36m-macosx_10_13_x86_64.whl (134.2 kB view hashes)

Uploaded CPython 3.6m macOS 10.13+ x86-64

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page