iroh-auth 0.2.0

Authentication middleware for iroh
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
mod auth;
mod error;
mod protocol;
mod secret;

use std::time::Duration;

pub use secret::IntoSecret;
pub use error::AuthenticatorError;
pub use auth::Authenticator;

pub const ALPN: &[u8] = b"/iroh/auth/0.1";
const AUTH_TIMEOUT: Duration = Duration::from_secs(30);
const TRANSMISSION_TIMEOUT: Duration = Duration::from_millis(5000);
const LRU_CACHE_SIZE: usize = 10_000;

#[cfg(test)]
mod tests;