aboutsummaryrefslogtreecommitdiff
path: root/p2p/src/peer
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/peer
parent57ac163a06b7f4b00d9cfd56d0ab6ee6a49adb56 (diff)
core: Move `key_pair` to the `crypto` module and make it a Cargo feature.
Diffstat (limited to 'p2p/src/peer')
-rw-r--r--p2p/src/peer/peer_id.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/p2p/src/peer/peer_id.rs b/p2p/src/peer/peer_id.rs
index 903d827..0208e05 100644
--- a/p2p/src/peer/peer_id.rs
+++ b/p2p/src/peer/peer_id.rs
@@ -2,7 +2,7 @@ use bincode::{Decode, Encode};
use rand::{rngs::OsRng, RngCore};
use sha2::{Digest, Sha256};
-use karyons_core::key_pair::PublicKey;
+use karyons_core::crypto::PublicKey;
use crate::Error;