QShift Labs
Sign in

Open source

Core Lightning

github.com/ElementsProject/lightning

C

Scanned 5 Dec 2026 at commit d1e4273f01: 1027 files, C/C++, Python, Rust, graded against CNSA 2.0, qshift 0.2.4.

0 weak today, 32 quantum-vulnerable, 3 below the profile, 1 ready.

How to raise the grade

The changes that move the grade most, in this order. Each step counts the places from the list below.

  1. Replace ECDSA/Schnorr secp256k1

    31 places. No drop-in replacement on chain; follow your chain's post-quantum plans and use ML-DSA-87 for signatures outside the chain.

    If this is the signature on the chain's transactions, it changes only when the whole network agrees on a new one.

  2. Replace classic ECDHE groups onlyC to A

    1 place, most of them in plugins/rest-plugin/src/. Use the default aws-lc-rs provider (rustls 0.23.27+ prefers X25519MLKEM768; kx_group::MLKEM1024 for CNSA 2.0).

  3. Move to the CNSA 2.0 strengthsA to A+

    3 places. Use the aws-lc-rs provider: add "aws_lc_rs" (and "prefer-post-quantum" before 0.23.27) to the rustls features, or keep the default features.

2. Protect data in transit

Key exchange and encryption a future quantum computer could break. Traffic recorded today could be decrypted later, so these come before signatures.

Quantum-vulnerableclassic ECDHE groups only 1 place

rustls with the ring crypto provider (no post-quantum key exchange)

Fix: Use the default aws-lc-rs provider (rustls 0.23.27+ prefers X25519MLKEM768; kx_group::MLKEM1024 for CNSA 2.0).

3. Move signatures

Signatures and certificates a future quantum computer could forge. Nothing recorded today becomes readable through them, so they can follow the key exchange, ahead of the CNSA 2.0 and NIST dates.

4. Tidy up

Not broken, but below the strength the profile asks for. Worth doing when the code is changed anyway.

Below profilecryptography 46.0.7 1 place

Versions before 48.0.0 have no ML-KEM or ML-DSA in the standard wheels

Fix: Require cryptography>=48 (the wheels bundle an OpenSSL with ML-KEM and ML-DSA).

Already post-quantum or strong enough

Readyrustls 0.23.46 1 place

Prefers hybrid X25519MLKEM768 by default with the aws-lc-rs provider.

Fix: None needed.

This is what the qshift scanner found in the public code at the commit named, with test folders left out. A scanner reports what it finds; it cannot prove that no other cryptography is used. It is not an audit and says nothing about how the project is run.