Skip to main content

request_signed

Function request_signed 

Source
pub async fn request_signed(
    relay: &str,
    ca_cert: Option<&Path>,
    request: &AccountRequest,
    device: &DeviceKey,
) -> Result<AccountReply, AccountError>
Expand description

request, signed by device when it carries a login token (#158): the relay takes a login’s token only signed by the device key the login is bound to.

§Errors

As request, and when the system’s clock or random source fails.