web3.py, eth-account, eth-keys
Ethereum signing is consensus-mandated secp256k1 ECDSA; the libraries cannot move before the chain does, and the Ethereum Foundation targets hash-based signatures for 2028 to 2029.
- PyPI
web3,eth-account,eth-keys- Version cited
- 8.0.0web3 8.0.0; eth-account 0.14.0; eth-keys 0.8.0 (now under ApeWorX)
- Downloads
- 5.4M/mo
Key exchange and encryption
PQ with action
RPC TLS PQ on OpenSSL ≥3.5
Signatures and identity
No path yet
secp256k1, consensus-mandated
What to do
Avoid address reuse and keep funds behind unrevealed public keys; never use secp256k1 for off-chain auth; run RPC clients on OpenSSL ≥3.5.
Since 1 Dec 2026 Nothing from the libraries. The EF’s PQAI #0 plan (23 Nov 2026) predates the advisory.
Details
Exposure#
- secp256k1 ECDSA, mandated by consensus. Every transacting EOA permanently exposes its public key on-chain, as do spent-from or reused addresses.
- secp256k1 is “unknown, not cleared”: the advisory’s wording sweeps it in, Valsorda does not mention it (details).
- eth-keys and eth-account are now under ApeWorX (ApeWorX/web3.py, eth-keys backends). The secp256k1-only coincurve is covered separately.
No library path#
No drop-in fix exists; this depends on chain upgrades. The EF’s pre-advisory plan targets hash-based signatures for 2028–2029 (“Tooling built around BLS will need to be reworked”) (EF PQAI #0). The AGY report describes the route as Lean Consensus / leanXMSS plus EIP-8141 account abstraction.
What to do now#
The AGY report’s immediate actions:
- Ban
secp256k1/BLS12-381for all off-chain authentication and signing; use cryptography ML-DSA for non-blockchain uses. - Run
web3.pyRPC clients on OpenSSL ≥3.5 so they negotiateX25519MLKEM768. - Minimize EOA key reuse after signing.
The Claude report adds: avoid address reuse and keep funds behind unrevealed public keys.
Downloads#
In the 30 days to 3 Dec 2026: web3 5,442,388; eth-account 6,522,985; eth-keys 6,649,194.
Full discussion: Infrastructure
Sources cited on this page 3
- ApeWorX/web3.py github.com
- eth-keys backends github.com
- EF PQAI #0 blog.ethereum.org