From a6016c7eeb11fc8aeaa1a3b160b970b15362695d Mon Sep 17 00:00:00 2001 From: hozan23 Date: Sun, 19 May 2024 22:20:03 +0200 Subject: add tokio examples to p2p, jsonrpc, and net crates --- p2p/src/lib.rs | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'p2p/src') 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}; -- cgit v1.2.3