Skip to main content

iroh_auth/
lib.rs

1mod auth;
2mod error;
3mod protocol;
4mod secret;
5
6use std::time::Duration;
7
8pub use secret::IntoSecret;
9pub use error::AuthenticatorError;
10pub use auth::Authenticator;
11
12pub const ALPN: &[u8] = b"/iroh/auth/0.1";
13const AUTH_TIMEOUT: Duration = Duration::from_secs(30);
14const TRANSMISSION_TIMEOUT: Duration = Duration::from_millis(5000);
15const LRU_CACHE_SIZE: usize = 10_000;
16
17#[cfg(test)]
18mod tests;