PQ Python

ecdsa (python-ecdsa), fastecdsa

python-ecdsa and fastecdsa implement only classical curves such as P-256 and secp256k1, python-ecdsa says it should not be used in production, and neither has a post-quantum path.

PyPI
ecdsa, fastecdsa
Version cited
0.19.2 / 4.0.0ecdsa 0.19.2 (26 Mar 2026); fastecdsa 4.0.0
Downloads
42.1M (ecdsa)/mo

Key exchange and encryption

No path yet

Classical curves only; no PQ

Signatures and identity

No path yet

P-256, secp256k1, Ed25519 only

What to do

Replace with cryptography ML-DSA (or P-384 as a stopgap) for all non-blockchain uses. Where a chain’s consensus fixes secp256k1, wait for the protocol to change.

Since 1 Dec 2026 Nothing found as of 3 Dec 2026.

Details

no PQ path

python-ecdsa#

ecdsa 0.19.2 (26 Mar 2026; 42,105,367 downloads per 30 days) is a pure-Python implementation of P-256, secp256k1 and Ed25519 (python-ecdsa). It is not constant-time. Its README says it “should not be used in production” and “does not protect against side-channel attacks”. It has no PQ algorithms, and no response to the advisory was found.

It is a hard dependency of python-jose 3.5.0 (with rsa), which uses it as its default ECDSA backend. bitcoinlib uses fastecdsa or ecdsa.

fastecdsa#

fastecdsa 4.0.0 is likewise classical-only, with no PQ (AGY report).

Migration#

Replace with cryptography ML-DSA for all non-blockchain systems. For ETH and BTC layer-1 keys the curve is protocol-bound, so no library swap helps; see coincurve, web3, py-ecc and the infrastructure page.

Sources cited on this page 1
  1. python-ecdsa github.com

All sources across the guide