mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-06-12 17:41:22 +00:00
protocols/noise: Introduce NoiseAuthenticated::xx
constructor with X25519 DH key exchange (#2887)
Co-authored-by: Max Inden <mail@max-inden.de>
This commit is contained in:
@ -97,10 +97,9 @@
|
||||
//!
|
||||
//! // Set up an encrypted TCP Transport over the Mplex
|
||||
//! // This is test transport (memory).
|
||||
//! let noise_keys = libp2p_noise::Keypair::<libp2p_noise::X25519Spec>::new().into_authentic(&local_key).unwrap();
|
||||
//! let transport = MemoryTransport::default()
|
||||
//! .upgrade(libp2p_core::upgrade::Version::V1)
|
||||
//! .authenticate(libp2p_noise::NoiseConfig::xx(noise_keys).into_authenticated())
|
||||
//! .authenticate(libp2p_noise::NoiseAuthenticated::xx(&local_key).unwrap())
|
||||
//! .multiplex(libp2p_mplex::MplexConfig::new())
|
||||
//! .boxed();
|
||||
//!
|
||||
|
Reference in New Issue
Block a user