Skip to content

Commit

Permalink
fixup! Call keystore.privkey() everytime we need it
Browse files Browse the repository at this point in the history
  • Loading branch information
LukasPukenis committed Jul 29, 2024
1 parent 317c011 commit 11cdfd8
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions norddrop/src/uni.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,21 +36,9 @@ impl NordDrop {
) -> Result<Self> {
let logger = super::log::create(logger);

// let privkey = key_store.privkey();
// let privkey: [u8; PUBLIC_KEY_LENGTH] = privkey
// .try_into()
// .map_err(|_| crate::LibdropError::InvalidPrivkey)?;
// let privkey = SecretKey::from(privkey);

let dev = NordDropFFI::new(
move |ev| event_callback.on_event(ev),
Arc::new(key_store),
// move |peer_ip| {
// let pubkey = key_store.on_pubkey(peer_ip.to_string())?;
// let pubkey: [u8; PUBLIC_KEY_LENGTH] = pubkey.try_into().ok()?;
// Some(PublicKey::from(pubkey))
// },
// privkey,
logger,
)?;

Expand Down

0 comments on commit 11cdfd8

Please sign in to comment.