pub trait BinderProtocol {
    fn authenticate<'life0, 'async_trait>(
        &'life0 self,
        auth_req: AuthRequest
    ) -> Pin<Box<dyn Future<Output = Result<AuthResponse, AuthError>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; fn validate<'life0, 'async_trait>(
        &'life0 self,
        token: BlindToken
    ) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; fn get_captcha<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = Result<Captcha, MiscFatalError>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; fn register_user<'life0, 'async_trait>(
        &'life0 self,
        username: SmolStr,
        password: SmolStr,
        captcha_id: SmolStr,
        captcha_soln: SmolStr
    ) -> Pin<Box<dyn Future<Output = Result<(), RegisterError>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; fn delete_user<'life0, 'async_trait>(
        &'life0 self,
        username: SmolStr,
        password: SmolStr
    ) -> Pin<Box<dyn Future<Output = Result<(), AuthError>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; fn add_bridge_route<'life0, 'async_trait>(
        &'life0 self,
        descriptor: BridgeDescriptor
    ) -> Pin<Box<dyn Future<Output = Result<(), MiscFatalError>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; fn get_summary<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = MasterSummary> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; fn get_bridges<'life0, 'async_trait>(
        &'life0 self,
        token: BlindToken,
        exit: SmolStr
    ) -> Pin<Box<dyn Future<Output = Vec<BridgeDescriptor>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; fn get_mizaru_pk<'life0, 'async_trait>(
        &'life0 self,
        level: Level
    ) -> Pin<Box<dyn Future<Output = PublicKey> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; fn get_mizaru_epoch_key<'life0, 'async_trait>(
        &'life0 self,
        level: Level,
        epoch: u16
    ) -> Pin<Box<dyn Future<Output = RSAPublicKey> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; }

Required Methods

Authenticates a 24-hour-long session for a user.

Validates a blind signature token, applying rate-limiting as appropriate

Obtains a unique captcha, for user registry.

Registers a new user.

Deletes a user.

Adds a bridge route.

Obtains the master summary of the network state.

Obtains a list of bridges.

Obtains the Mizaru long-term key.

Obtains a Mizaru epoch key.

Implementors