Skip to main content

Module mesh_noise

Module mesh_noise 

Source
Expand description

Noise Protocol encryption for mesh transport (K6.1).

Wraps raw MeshStream with Noise XX or IK handshake encryption. The actual snow integration is planned for a future milestone; this module provides the trait contract and a passthrough implementation for testing.

Structs§

EncryptedPeer
Established encrypted peer session metadata (WEFT-115).
HybridKeyExchange
Result of a hybrid key exchange (classical Noise XX + optional ML-KEM-768).
KemConfig
Post-quantum Key Encapsulation Mechanism (KEM) configuration.
KemUpgradeProtocol
KEM upgrade protocol: runs after Noise XX handshake completes, before sync streams are opened.
KeyRotationState
Key rotation state for a mesh connection.
NoiseChannel
Real Noise Protocol encrypted channel using snow.
NoiseConfig
Configuration for a Noise handshake.
PassthroughChannel
Passthrough “encryption” for testing and development.

Enums§

KemNegotiationResult
Result of KEM capability negotiation between two peers.
NoisePattern
Noise handshake pattern.

Traits§

EncryptedChannel
Encrypted channel wrapping a raw mesh stream.

Functions§

create_encrypted_channel
Create an encrypted channel for a mesh connection.
negotiate_kem
Negotiate KEM capability between two peers.
noise_static_public
The Noise static public key for a static private key (Curve25519), i.e. what the remote side sees as this node’s remote static. Needed to fill noise_static_pub in an admission hello on the initiator side, where the handshake does not expose the local static.