Function fuel_core_p2p::config::convert_to_libp2p_keypair
source · pub fn convert_to_libp2p_keypair(
secret_key_bytes: impl AsMut<[u8]>,
) -> Result<Keypair>
Expand description
Takes secret key bytes generated outside of libp2p.
And converts it into libp2p’s Keypair::Secp256k1
.