Skip to content
Snippets Groups Projects
Commit 9904da17 authored by Pierre Krieger's avatar Pierre Krieger Committed by Bastian Köcher
Browse files

Add warning about secp256k1 network keys (#2764)

parent 8e0a14fe
No related merge requests found
......@@ -16,6 +16,7 @@
use crate::{
behaviour::Behaviour,
config::NodeKeyConfig,
transport, NetworkState, NetworkStatePeer, NetworkStateNotConnectedPeer
};
use crate::custom_proto::{CustomProto, CustomProtoOut, CustomMessage, RegisteredProtocol};
......@@ -79,6 +80,9 @@ where TMessage: CustomMessage + Send + 'static {
});
// Private and public keys configuration.
if let NodeKeyConfig::Secp256k1(_) = config.node_key {
warn!(target: "sub-libp2p", "Secp256k1 keys are deprecated in favour of ed25519");
}
let local_identity = config.node_key.clone().into_keypair()?;
let local_public = local_identity.public();
let local_peer_id = local_public.clone().into_peer_id();
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment