diff --git a/crates/common/src/node_account.rs b/crates/common/src/node_account.rs index 7b89c6a..f480c9e 100644 --- a/crates/common/src/node_account.rs +++ b/crates/common/src/node_account.rs @@ -12,9 +12,8 @@ pub struct NodeAccount { impl NodeAccount { pub fn new(private_key: Vec) -> Self { - let secret_key = - libp2p::identity::ecdsa::SecretKey::try_from_bytes(private_key.as_slice()) - .expect("Failed to create secret key from private key."); + let secret_key = libp2p::identity::ecdsa::SecretKey::try_from_bytes(private_key.as_slice()) + .expect("Failed to create secret key from private key."); let p2p_keypair = libp2p::identity::Keypair::from(libp2p::identity::ecdsa::Keypair::from(secret_key)); let signing_key = SigningKey::from_secret_scalar(