Fix Noise X25519 key usage and tests#1195
Conversation
|
Hello @meatsquirk thanks, for this PR. Full review here: AI PR Review: #1195 — Fix Noise X25519 key usage and tests1. Summary of ChangesWhat the PR does: This PR enforces X25519 for the Noise static key in the libp2p Noise handshake, aligns types with the libp2p Noise spec, and updates tests to use and assert X25519 keys. Issue addressed: Fixes #1182 (Noise handshake uses Ed25519 identity key as static DH key instead of X25519). The issue describes spec non-compliance when the Noise static key is not X25519; this PR makes the library enforce and type the static key as X25519 and fail fast when a non-X25519 key is passed. Modules/files affected:
Breaking changes / deprecations: None. Callers that already pass X25519 (default host, interop) are unchanged. Callers that passed Ed25519 or other key types will now get a clear 2. Branch Sync Status and Merge ConflictsBranch Sync Status
Merge Conflict Analysis
3. Strengths
4. Issues FoundCritical
Major
Minor
5. Security Review
Verdict: Positive security impact; no additional mitigations required for this change set. 6. Documentation and Examples
7. Newsfragment RequirementStatus: ❌ BLOCKER — Missing newsfragment
8. Tests and ValidationNew tests:
Updated tests: Test run: Full suite ( Linting (
|
|
Hello @meatsquirk , are you working on this PR, do you need help ? |
Summary
Testing
Issue