Skip to main content

Cross-platform Python libsecp256k1 for ElectrumSV

Project description

Licence: MIT Licence / Apache v2.0 (dual licensed)
Maintainers: Neil Booth, Roger Taylor
Project Lead: Roger Taylor
Language: Python (>=3.6)
Homepage: https://electrumsv.io/

Build status on Azure Pipelines


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

  • Contributors of coincurve. At this time this project is for the most part a adapted and stripped down version of coincurve for Azure Pipelines.

  • Contributors of libsecp256k1.

  • Contributors of secp256k1-py. While Coincurve is nearly a complete rewrite, much of the build system provided by ulope remains.

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.1.tar.gz (937.0 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

electrumsv_secp256k1-0.9.1-py2.py3-none-win_amd64.whl (230.8 kB view details)

Uploaded Python 2Python 3Windows x86-64

electrumsv_secp256k1-0.9.1-py2.py3-none-win32.whl (253.3 kB view details)

Uploaded Python 2Python 3Windows x86

electrumsv_secp256k1-0.9.1-cp37-cp37m-manylinux1_x86_64.whl (513.8 kB view details)

Uploaded CPython 3.7m

electrumsv_secp256k1-0.9.1-cp37-cp37m-manylinux1_i686.whl (520.6 kB view details)

Uploaded CPython 3.7m

electrumsv_secp256k1-0.9.1-cp37-cp37m-macosx_10_13_x86_64.whl (134.5 kB view details)

Uploaded CPython 3.7mmacOS 10.13+ x86-64

electrumsv_secp256k1-0.9.1-cp36-cp36m-manylinux1_x86_64.whl (513.8 kB view details)

Uploaded CPython 3.6m

electrumsv_secp256k1-0.9.1-cp36-cp36m-manylinux1_i686.whl (520.6 kB view details)

Uploaded CPython 3.6m

electrumsv_secp256k1-0.9.1-cp36-cp36m-macosx_10_13_x86_64.whl (134.5 kB view details)

Uploaded CPython 3.6mmacOS 10.13+ x86-64

File details

Details for the file electrumsv-secp256k1-0.9.1.tar.gz.

File metadata

  • Download URL: electrumsv-secp256k1-0.9.1.tar.gz
  • Upload date:
  • Size: 937.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.6

File hashes

Hashes for electrumsv-secp256k1-0.9.1.tar.gz
Algorithm Hash digest
SHA256 4c6c1ea0d4fd885ce64341e168c99c4afa3b663f2b248bb6bfe140f337d97ea3
MD5 58ec30c4f78bf756cdd085f60075920c
BLAKE2b-256 45aa1ba553ec686ffac1b60c1c252964b46badce41083f65eb6dff5983bd3336

See more details on using hashes here.

File details

Details for the file electrumsv_secp256k1-0.9.1-py2.py3-none-win_amd64.whl.

File metadata

  • Download URL: electrumsv_secp256k1-0.9.1-py2.py3-none-win_amd64.whl
  • Upload date:
  • Size: 230.8 kB
  • Tags: Python 2, Python 3, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.6

File hashes

Hashes for electrumsv_secp256k1-0.9.1-py2.py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 fdedbdcebdbdeab20b38a627b5ac380a81ba8159b02b709579bf072b5aff6070
MD5 73039e55c47b66c5d16e6f1a761807c9
BLAKE2b-256 812fc6d706ee48d4c3f22f898caa80ec36149c746b5525c373323060614e0b3d

See more details on using hashes here.

File details

Details for the file electrumsv_secp256k1-0.9.1-py2.py3-none-win32.whl.

File metadata

  • Download URL: electrumsv_secp256k1-0.9.1-py2.py3-none-win32.whl
  • Upload date:
  • Size: 253.3 kB
  • Tags: Python 2, Python 3, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.6

File hashes

Hashes for electrumsv_secp256k1-0.9.1-py2.py3-none-win32.whl
Algorithm Hash digest
SHA256 7acb8b5a801343ebde1944ed9aecaaacccf90d484ea1cde469e6253a2521ee87
MD5 abb6428db752ef5e732c4ba87cae89c8
BLAKE2b-256 37aefd0b01e54c0fd630a08eff6b13bcd34028d6543878862b28306364921a6b

See more details on using hashes here.

File details

Details for the file electrumsv_secp256k1-0.9.1-cp37-cp37m-manylinux1_x86_64.whl.

File metadata

  • Download URL: electrumsv_secp256k1-0.9.1-cp37-cp37m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 513.8 kB
  • Tags: CPython 3.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.6

File hashes

Hashes for electrumsv_secp256k1-0.9.1-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 9afe1b9c7f4a2d34eaf07f5eae483dab317c168f00303d9b427edf415ecdbf64
MD5 7273e25b192f5f3265816de6b31dcb92
BLAKE2b-256 9030a41c88fa4fd2303c0762f439ac6c2f64f3719304680d050870b0cca80536

See more details on using hashes here.

File details

Details for the file electrumsv_secp256k1-0.9.1-cp37-cp37m-manylinux1_i686.whl.

File metadata

  • Download URL: electrumsv_secp256k1-0.9.1-cp37-cp37m-manylinux1_i686.whl
  • Upload date:
  • Size: 520.6 kB
  • Tags: CPython 3.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.6

File hashes

Hashes for electrumsv_secp256k1-0.9.1-cp37-cp37m-manylinux1_i686.whl
Algorithm Hash digest
SHA256 e14688d462e74d799314d7ece51bc2a91ac62634b9c6dcc60e47d88b85bb5d0f
MD5 693f3c9d7a7eb08df5529ec2d51ec511
BLAKE2b-256 b98eabb48a756ad20c62794e1db12ed71c03d8f3dd1612351a0250f55f90dfbb

See more details on using hashes here.

File details

Details for the file electrumsv_secp256k1-0.9.1-cp37-cp37m-macosx_10_13_x86_64.whl.

File metadata

  • Download URL: electrumsv_secp256k1-0.9.1-cp37-cp37m-macosx_10_13_x86_64.whl
  • Upload date:
  • Size: 134.5 kB
  • Tags: CPython 3.7m, macOS 10.13+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.6

File hashes

Hashes for electrumsv_secp256k1-0.9.1-cp37-cp37m-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 fb24016f431f8830b5caad8b56f97a600c13779bead2e0407d644da26e776233
MD5 fefb11e4141d4f061eaca9b69043f9da
BLAKE2b-256 46ee8b530b9001f3d4762c7b8839006f2c37a76d9d48f5ca517cc20d8bd2e9fa

See more details on using hashes here.

File details

Details for the file electrumsv_secp256k1-0.9.1-cp36-cp36m-manylinux1_x86_64.whl.

File metadata

  • Download URL: electrumsv_secp256k1-0.9.1-cp36-cp36m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 513.8 kB
  • Tags: CPython 3.6m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.6

File hashes

Hashes for electrumsv_secp256k1-0.9.1-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 dafbd9de68935237412d70dc985ae248b07eb5876b6322e445f4bc11e391a1e5
MD5 449fd0d79767bd45bd6913ae7963f51b
BLAKE2b-256 cff94b2d968de10a5614cd09b5dcd0f80454d109621ace710f1fc43a8a531187

See more details on using hashes here.

File details

Details for the file electrumsv_secp256k1-0.9.1-cp36-cp36m-manylinux1_i686.whl.

File metadata

  • Download URL: electrumsv_secp256k1-0.9.1-cp36-cp36m-manylinux1_i686.whl
  • Upload date:
  • Size: 520.6 kB
  • Tags: CPython 3.6m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.6

File hashes

Hashes for electrumsv_secp256k1-0.9.1-cp36-cp36m-manylinux1_i686.whl
Algorithm Hash digest
SHA256 eb2c45f6e7d380cfb85fbbc701aa6307f8ba68f9e7d206f5b6f6dda6d4533002
MD5 c13e89f5598c804dbbc39c5ae4361069
BLAKE2b-256 1a9cb4373f46b6c2a92e6b590b547e115027a12633b3deb7ecd866476b83753f

See more details on using hashes here.

File details

Details for the file electrumsv_secp256k1-0.9.1-cp36-cp36m-macosx_10_13_x86_64.whl.

File metadata

  • Download URL: electrumsv_secp256k1-0.9.1-cp36-cp36m-macosx_10_13_x86_64.whl
  • Upload date:
  • Size: 134.5 kB
  • Tags: CPython 3.6m, macOS 10.13+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.6

File hashes

Hashes for electrumsv_secp256k1-0.9.1-cp36-cp36m-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 087b292f2a59b9d30fa4bad63f1ff0c0f31efb670b6d8536d2cb3ef643df6fd4
MD5 0b609e9a7d28ad9401cd43cd94410e44
BLAKE2b-256 9cb6f31f89d0fe14a8424cbf44d3c01ba1feaa70c959eab67a97a04cc73c49fa

See more details on using hashes here.

Supported by

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