Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Okm165 committed Jul 5, 2024
1 parent 98aa138 commit 041d6ee
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions crates/common/src/node_account.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,8 @@ pub struct NodeAccount {

impl NodeAccount {
pub fn new(private_key: Vec<u8>) -> 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(
Expand Down

0 comments on commit 041d6ee

Please sign in to comment.