aboutsummaryrefslogtreecommitdiff
path: root/p2p/src
diff options
context:
space:
mode:
authorhozan23 <hozan23@karyontech.net>2024-05-19 22:20:03 +0200
committerhozan23 <hozan23@karyontech.net>2024-05-19 22:20:03 +0200
commita6016c7eeb11fc8aeaa1a3b160b970b15362695d (patch)
treea872c02076836811257b59ce7d88f9ef5a85f5ed /p2p/src
parent1c520b20f70ddbdab885ec6c4bf5c87893a26eb4 (diff)
add tokio examples to p2p, jsonrpc, and net crates
Diffstat (limited to 'p2p/src')
-rw-r--r--p2p/src/lib.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/p2p/src/lib.rs b/p2p/src/lib.rs
index 8f3cf45..fc2c26d 100644
--- a/p2p/src/lib.rs
+++ b/p2p/src/lib.rs
@@ -65,4 +65,12 @@ pub use error::Error as P2pError;
pub use peer::{ArcPeer, PeerID};
pub use version::Version;
+pub mod endpoint {
+ pub use karyon_net::{Addr, Endpoint, Port};
+}
+
+pub mod keypair {
+ pub use karyon_core::crypto::{KeyPair, KeyPairType, PublicKey, SecretKey};
+}
+
use error::{Error, Result};