coincurve
Safest and fastest Python library for secp256k1 elliptic curve operations
Decision gist · record as of 2026-08-14
Yes. coincurve is production-stable, actively maintained, widely adopted in blockchain infrastructure, has no known vulnerabilities, and offers fast Python bindings to secp256k1. Install it if you need secp256k1 operations; the medium install friction is justified by the performance and correctness guarantees of the underlying C library.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.9 or later; on platforms without prebuilt wheels, a C compiler and libsecp256k1 development headers are needed.
- Medium install friction due to compiled C bindings; prebuilt wheels are available for Python 3.9–3.13 across macOS, Linux, and Windows architectures, reducing build overhead on common platforms.
License · maintenance · safety
MIT OR Apache-2.0 (permissive) — Dual-licensed under MIT or Apache-2.0, both permissive licenses; you may choose either license when using or redistributing the package.
last release 2025-03-08 (524 days) · last repo commit 2026-08-12 · 181 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 3,254,947 downloads/mo, #2,683 on PyPI
Alternatives
Verify before relying
pip install coincurve
from coincurve import PrivateKey
private_key = PrivateKey()
public_key = private_key.public_key
signature = private_key.sign(b'message')- Whether the package supports key derivation (BIP32/BIP44) or only basic signing and verification operations.
- Performance characteristics compared to pure-Python elliptic curve libraries for typical workloads.
- Full API surface for ECDH, Schnorr signatures, and other operations beyond basic signing.
What it is and what it does
coincurve wraps libsecp256k1, the heavily optimized C library used by Bitcoin Core, to provide Python developers with fast, production-grade elliptic curve operations on the secp256k1 curve. It handles ECDSA signing and verification, ECDH key exchange, and Schnorr signatures—the cryptographic primitives underlying blockchain systems.
The package is used by major projects including Ethereum, LBRY, and libp2p. It supports Python 3.9 through 3.13 and both CPython and PyPy implementations. Installation is straightforward on common platforms thanks to prebuilt wheels; on less common architectures, you may need a C compiler and libsecp256k1 development headers.
Use it for
- Sign and verify transactions in Bitcoin or Ethereum applications without implementing elliptic curve math yourself.
- Perform ECDH key exchange for establishing shared secrets in peer-to-peer or blockchain protocols.
- Generate and manage secp256k1 keypairs for cryptocurrency wallets or signing services.
- Implement Schnorr signatures for protocols that require this signature scheme.
- Integrate cryptographic operations into applications that depend on libsecp256k1 semantics.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
coincurve is production-stable, actively maintained, widely adopted in blockchain infrastructure, has no known vulnerabilities, and offers fast Python bindings to secp256k1. Install it if you need secp256k1 operations; the medium install friction is justified by the performance and correctness guarantees of the underlying C library.
Install
coincurve on PyPI
Before you install
Medium install friction due to compiled C bindings; prebuilt wheels are available for Python 3.9–3.13 across macOS, Linux, and Windows architectures, reducing build overhead on common platforms.
Requires Python 3.9 or later; on platforms without prebuilt wheels, a C compiler and libsecp256k1 development headers are needed.
License in practice
Dual-licensed under MIT or Apache-2.0, both permissive licenses; you may choose either license when using or redistributing the package.
Quickstart
pip install coincurve
from coincurve import PrivateKey
private_key = PrivateKey()
public_key = private_key.public_key
signature = private_key.sign(b'message')
Verify before relying
- Whether the package supports key derivation (BIP32/BIP44) or only basic signing and verification operations.
- Performance characteristics compared to pure-Python elliptic curve libraries for typical workloads.
- Full API surface for ECDH, Schnorr signatures, and other operations beyond basic signing.
Package facts
| License | MIT OR Apache-2.0 permissive |
| Python support | Supports the current Python release >=3.9 |
| Install friction | Medium. Platform-specific wheel |
| Runtime dependencies | None |
| Maintenance | Actively maintained 524 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 3,254,947 / month, #2,683 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: Apache Software LicenseLicense :: OSI Approved :: MIT LicenseNatural Language :: EnglishOperating System :: OS IndependentProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.9Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPyTopic :: Security :: CryptographyTopic :: Software Development :: Libraries |
Evidence: coincurve-21.0.0-cp310-cp310-macosx_10_9_x86_64.whl; coincurve-21.0.0-cp310-cp310-macosx_11_0_arm64.whl; coincurve-21.0.0-cp310-cp310-manylinux_2_12_i686.manylinux2010_i686.manylinux_2_17_i686.manylinux2014_i686.whl; coincurve-21.0.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl; coincurve-21.0.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl; coincurve-21.0.0-cp310-cp310-musllinux_1_2_aarch64.whl; coincurve-21.0.0-cp310-cp310-musllinux_1_2_i686.whl; coincurve-21.0.0-cp310-cp310-musllinux_1_2_x86_64.whl; coincurve-21.0.0-cp310-cp310-win_amd64.whl; coincurve-21.0.0-cp310-cp310-win_arm64.whl; coincurve-21.0.0-cp311-cp311-macosx_10_9_x86_64.whl; coincurve-21.0.0-cp311-cp311-macosx_11_0_arm64.whl; coincurve-21.0.0-cp311-cp311-manylinux_2_12_i686.manylinux2010_i686.manylinux_2_17_i686.manylinux2014_i686.whl; coincurve-21.0.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl; coincurve-21.0.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl; coincurve-21.0.0-cp311-cp311-musllinux_1_2_aarch64.whl; coincurve-21.0.0-cp311-cp311-musllinux_1_2_i686.whl; coincurve-21.0.0-cp311-cp311-musllinux_1_2_x86_64.whl; coincurve-21.0.0-cp311-cp311-win_amd64.whl; coincurve-21.0.0-cp311-cp311-win_arm64.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “secp256k1 python bindings”
- coincurvecoincurve provides Python bindings to libsecp256k1, enabling fast…
- py-eccImplements elliptic curve cryptography operations for secp256k1,…
- starkbank-ecdsaPure Python ECDSA implementation supporting secp256k1 and prime256v1…
Give your agent the search over MCP, or paste the wish link into any chat.
More Libraries packages
urllib3 is an HTTP client library that provides thread-safe connection pooling, SSL/TLS verification, multipart file uploads, request retries, compression support, and proxy handling for Python applications.
Requests is a Python HTTP library that simplifies sending HTTP/1.1 requests with automatic handling of headers, authentication, cookies, and response parsing.
Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.
Install it if you're building an extensible application or framework.
Provides parsing, arithmetic, and recurrence rule computation for dates and times, with timezone support and iCalendar RFC compliance.
Install it if you need to parse flexible date strings, compute relative dates, handle timezones, or work with recurrence rules—it's the de facto choice for these tasks.
Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.
pytest is a testing framework that lets you write test functions using plain assert statements and automatically discovers and runs them, with detailed failure reporting.
See also py-ecc · ecdsa · sslcrypto · fastecdsa · eth-keys · crypto-cpp-py · ckzg · ECPy · eciespy · slip10