From 63e8b2fa6b5d4d9bf1ba9234bff0be8a255e612e Mon Sep 17 00:00:00 2001 From: hozan23 Date: Wed, 29 Nov 2023 11:44:53 +0300 Subject: core: Move `key_pair` to the `crypto` module and make it a Cargo feature. --- p2p/src/discovery/lookup.rs | 2 +- p2p/src/discovery/mod.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'p2p/src/discovery') 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, }; -- cgit v1.2.3