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