PQ Python

python-bitcoinlib, bitcoinlib

Bitcoin libraries signing with consensus-mandated secp256k1; they cannot migrate ahead of the chain, and secp256k1’s exposure is unknown.

PyPI
python-bitcoinlib, bitcoinlib
Version cited
not reportedVersions not collected
Downloads
576.4K/mo

Key exchange and encryption

Not affected

No key exchange

Signatures and identity

No path yet

secp256k1; chain-bound

What to do

Avoid address reuse and keep funds behind unrevealed public keys; there is no library-level change to make.

Since 1 Dec 2026 Nothing from the libraries. Commentary only: Adam Back (secondhand) and a roughly 6% Bitcoin price drop.

Details

  • Both sign with secp256k1. bitcoinlib uses fastecdsa or ecdsa (ecdsa); the AGY report lists ecdsa (0.19.2, pure-Python, non-constant-time) and fastecdsa (4.0.0) among the ECC-only libraries with no PQ path.
  • No PQ or stopgap path exists in the libraries; this depends on the chain.
  • The public keys of spent-from or reused addresses are already on-chain. Avoid address reuse and keep funds behind unrevealed public keys.
  • secp256k1 is “unknown, not cleared”; the CNSA FAQ says cryptocurrencies are “not an NSA responsibility” (details).
  • Adam Back (secondhand) called inferring a link to recent AI research “a reading comprehension mistake” (details).

Downloads in the 30 days to 3 Dec 2026: python-bitcoinlib 576,448; bitcoinlib 95,742.