2026-12-05: Post-quantum key exchange#
Bitcoin Server (bs) and Bitcoin Explorer (bx) now support
X25519MLKEM768, the hybrid TLS 1.3 key exchange (group 0x11ec) used by
Chrome, Firefox and OpenSSL 3.5. The work is merged in
libbitcoin-system, libbitcoin-network and libbitcoin-explorer. Each
session secret combines ML-KEM-768 (FIPS 203) with X25519, so a recorded
session stays private unless both are broken. This protects today's
traffic against decryption by a future quantum computer.
What changes#
- Server. The
bsTLS endpoints prefer the hybrid group. A client that does not offer it keeps using X25519, P-256 or P-384, with no extra round trip (TLS). - Client.
bxoffers the hybrid group first, with X25519 as the fallback. - Certificates.
bx tls-newmakes P-384 keys and certificates by default, and P-256 with--curve p256.bx tls-certdetects the curve of the key (Self-signed certificates). - Configuration. None. Existing certificates, keys and configuration keep working.
Implementation#
ML-KEM-768 is implemented natively in libbitcoin-system, as is the rest of the TLS stack, with no external cryptography library (Key encapsulation). It runs in constant time on secret data (Constant time). It passes all 75 NIST ACVP ML-KEM-768 test vectors, and rejects malformed keys and ciphertexts as the standard requires. It has been tested against OpenSSL 3.5 in both directions, and against Chromium, including mutual (client certificate) authentication.
Scope#
This covers key exchange. Authentication still uses ECDSA certificates, on P-256 or P-384. A signature has to resist forgery only during the handshake, so it is not exposed by recorded traffic decrypted later.
Tracking issue: libbitcoin-server#1288.