1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
mod listener;
mod transport;
pub use listener::{AcceptFuture, Listener, TransportListener, TransportListenerCtx};
pub use transport::*;
// Re-export commonly-used orion structs
pub use orion::aead::SecretKey;
pub trait UnprotectedToHexKey {
fn unprotected_to_hex_key(&self) -> String;
}
impl UnprotectedToHexKey for SecretKey {
fn unprotected_to_hex_key(&self) -> String {
hex::encode(self.unprotected_as_bytes())
}
}