Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
Okm165 committed Jul 5, 2024
1 parent 2f97486 commit 0b66a5c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions crates/common/src/node_account.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,9 @@ where
P: Provider + Sync + Send + 'static,
{
pub fn new(private_key: Vec<u8>, address: Vec<u8>, network: Network, provider: P) -> 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::generate());
let signing_key = SigningKey::from_secret_scalar(
Expand Down

0 comments on commit 0b66a5c

Please sign in to comment.