aboutsummaryrefslogtreecommitdiff
path: root/p2p/src/discovery
diff options
context:
space:
mode:
authorhozan23 <hozan23@proton.me>2023-11-29 11:44:53 +0300
committerhozan23 <hozan23@proton.me>2023-11-29 11:44:53 +0300
commit63e8b2fa6b5d4d9bf1ba9234bff0be8a255e612e (patch)
treed8291050228c7e23bdc9a7195df4505db0df1f93 /p2p/src/discovery
parent57ac163a06b7f4b00d9cfd56d0ab6ee6a49adb56 (diff)
core: Move `key_pair` to the `crypto` module and make it a Cargo feature.
Diffstat (limited to 'p2p/src/discovery')
-rw-r--r--p2p/src/discovery/lookup.rs2
-rw-r--r--p2p/src/discovery/mod.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/p2p/src/discovery/lookup.rs b/p2p/src/discovery/lookup.rs
index 60d8635..aefc3a0 100644
--- a/p2p/src/discovery/lookup.rs
+++ b/p2p/src/discovery/lookup.rs
@@ -5,7 +5,7 @@ use log::{error, trace};
use rand::{rngs::OsRng, seq::SliceRandom, RngCore};
use smol::lock::{Mutex, RwLock};
-use karyons_core::{async_util::timeout, key_pair::KeyPair, util::decode, GlobalExecutor};
+use karyons_core::{async_util::timeout, crypto::KeyPair, util::decode, GlobalExecutor};
use karyons_net::{Conn, Endpoint};
diff --git a/p2p/src/discovery/mod.rs b/p2p/src/discovery/mod.rs
index 2c1bcd8..8091991 100644
--- a/p2p/src/discovery/mod.rs
+++ b/p2p/src/discovery/mod.rs
@@ -9,7 +9,7 @@ use smol::lock::Mutex;
use karyons_core::{
async_util::{Backoff, TaskGroup, TaskResult},
- key_pair::KeyPair,
+ crypto::KeyPair,
GlobalExecutor,
};