Tracking: experimental Noise XXhfs + ML-KEM-768 (post-quantum) transport
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 28/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- python
- Domain
- cryptography, networking, security
Research direction
Start with PR #1310 and the Stage 1A wire draft in specs#727, then compare the provisional protocol IDs and Noise suite name across the referenced implementations. Identify the py-libp2p CI KATs, interop-vector checks, installation extras, and user-facing documentation affected by the opt-in integration. Done means the agreed identifiers and vectors are aligned across Python, JavaScript, Rust, and Nim, with the feature explicitly marked experimental and unstable.
Written by the indexing model from the issue text.
Description
Summary
Track the experimental Noise XXhfs + ML-KEM-768 security transport work in py-libp2p, currently implemented in PR https://github.com/libp2p/py-libp2p/pull/1310 by @paschal533.
This is an opt-in / research integration point aligned with:
- Specs discussion: https://github.com/libp2p/specs/issues/723
- Wire draft (Stage 1A): https://github.com/libp2p/specs/pull/727
- Design discussion: https://github.com/libp2p/py-libp2p/discussions/1306
Related cross-impl work: js-libp2p-noise#665, rust-libp2p#6481, nim-libp2p#2811.
Unstable protocol IDs (please read)
These identifiers are provisional and may change when libp2p/specs#727 freezes the suite name and multistream protocol ID. Do not treat them as a stable interop contract yet.
| What | Value on PR #1310 (current) | Specs #727 (draft) | Notes |
|---|---|---|---|
| Noise suite name | Noise_XXhfs_25519+MLKEM768_ChaChaPoly_SHA256 |
May still show hyphenated form in older drafts | Hyphens removed to satisfy Noise rev 34 §8.2 (alphanumerics + / only). The name is hashed into the handshake hash — renames break wire interop. |
| Base protocol ID | /noise-mlkem768-hfs/0.2.0 |
/noise-mlkem768-hfs/0.1.0 (open issue on #727) |
py-libp2p bumped for the suite rename; will follow whatever #727 settles on. |
| Identity transcript-binding variant | /noise-mlkem768-hfs/0.3.0 |
Not yet in the base draft as a separate ID | Used when transcript_binding.variant == "identity" so multistream-select does not pair incompatible peers. |
Compatibility expectations
- Classical
/noiseis unchanged for default users (transcript binding is off by default). - Peers on older provisional IDs (
0.1.0, hyphenated suite name) will not complete a handshake with the current branch. - Enabling the identity binding variant requires advertising
0.3.0, not0.2.0. - Any merge of #1310 into
mainshould be labelled experimental: IDs and suite strings may still move with the specs process.
Scope of the tracking work
- Land / iterate on PR #1310 as experimental opt-in (
libp2p[pq]), not as a production default - Sync protocol ID + suite name when specs#727 freezes them
- Keep CI KATs / interop vectors aligned with JS / Rust / Nim
- User-facing docs: install extras, unstable IDs,
transcript_bindingmodes - Rename newsfragments from PR number to this issue number once linked (
Fixes #<this>) - Follow-ups (non-blocking for experimental merge discussion): fuzz malformed handshakes; upgrader-level defence for Noise→TLS downgrade
Maintainer posture
Maintainers (@acul71, @seetadev, @sumanjeet0012 ) should treat this as the canonical py-libp2p issue for PQ Noise XXhfs until the specs identifier story is settled. Merge of #1310 remains a maintainer decision (experimental merge vs stay draft) — see review comments on the PR.
- Dominant language
- Python
- Stars
- 629
- Forks
- 261
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 30
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from libp2p/py-libp2p
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 22/100
Maintainers usually reply within 1 day
-
Windows: make lint/typecheck/test/docs/pr fail after setup_dev.ps1Possibly taken @LevelVoid claimed this 18 days ago. Open
Difficulty 4/5 3-5 days Newbie friendliness 35/100
libp2p/py-libp2p#1595 · 4 comments · 1 assignee ·
Maintainers usually reply within 1 day
-
Tracking: post-quantum key exchange (X25519MLKEM768) on the QUIC transportPossibly taken @paschal533 claimed this 5 days ago. Open
Difficulty 4/5 3-5 days Newbie friendliness 25/100
libp2p/py-libp2p#1581 · 7 comments ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 58/100
Maintainers usually reply within 1 day
All issues in libp2p/py-libp2p
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 78/100
nael5x/creative-ai#130 ·
-
Make the "%" unit spacing the same in the web and in A10Possibly taken @kragent66-glitch claimed this today. Openbug good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
maiychrus25/OpenTea-DX-OS#226 · 1 comment ·
-
ci severity: low
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
TMHSDigital/Spackle#205 ·
Maintainers usually reply within 1 day
-
pkg:lgm type:chore upstream-gaussx
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
jejjohnson/pyrox#610 ·
Maintainers usually reply within 1 day