1mod ssh;
2
3use ed25519_dalek::{PUBLIC_KEY_LENGTH, SECRET_KEY_LENGTH};
4use iroh::{protocol::Router, Endpoint};
5
6pub use ssh::dot_ssh;
7
8
9#[derive(Debug, Clone)]
10pub struct IrohSsh {
11 #[allow(dead_code)]
12 pub(crate) secret_key: [u8; SECRET_KEY_LENGTH],
13 #[allow(dead_code)]
14 pub(crate) public_key: [u8; PUBLIC_KEY_LENGTH],
15 pub(crate) inner: Option<Inner>,
16}
17
18#[derive(Debug, Clone)]
19pub(crate) struct Inner {
20 pub endpoint: Endpoint,
21 #[allow(dead_code)]
22 pub router: Router,
23}
24
25#[derive(Debug, Clone)]
26pub struct Builder {
27 secret_key: [u8; SECRET_KEY_LENGTH],
28 accept_incoming: bool,
29 accept_port: Option<u16>,
30}
31