Tracking: experimental Noise XXhfs + ML-KEM-768 (post-quantum) transport

Open
#1,576 0 comments 0 reactions 0 assignees View on GitHub

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

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

discussion enhancement feature Interoperability

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:

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 /noise is 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, not 0.2.0.
  • Any merge of #1310 into main should 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_binding modes
  • 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

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from libp2p/py-libp2p

All issues in libp2p/py-libp2p

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.