Skip to main content

Module upload_signing_keys

Module upload_signing_keys 

Source

Re-exportsยง

use axum::extract::State; ๐Ÿ”’
use ruma::UserId; ๐Ÿ”’
use ruma::api::client::keys::upload_signing_keys; ๐Ÿ”’
use ruma::api::client::uiaa::AuthFlow; ๐Ÿ”’
use ruma::api::client::uiaa::AuthType; ๐Ÿ”’
use ruma::api::client::uiaa::UiaaInfo; ๐Ÿ”’
use ruma::encryption::CrossSigningKey; ๐Ÿ”’
use ruma::encryption::KeyUsage; ๐Ÿ”’
use ruma::serde::Raw; ๐Ÿ”’
use serde_json::json; ๐Ÿ”’
use serde_json::value::to_raw_value; ๐Ÿ”’
use tuwunel_core::Err; ๐Ÿ”’
use tuwunel_core::Error; ๐Ÿ”’
use tuwunel_core::Result; ๐Ÿ”’
use tuwunel_core::debug; ๐Ÿ”’
use tuwunel_core::debug; ๐Ÿ”’
use tuwunel_core::debug_error; ๐Ÿ”’
use tuwunel_core::err; ๐Ÿ”’
use tuwunel_core::result::NotFound; ๐Ÿ”’
use tuwunel_core::utils; ๐Ÿ”’
use tuwunel_core::utils::BoolExt; ๐Ÿ”’
use tuwunel_core::utils::OptionExt; ๐Ÿ”’
use tuwunel_service::Services; ๐Ÿ”’
use tuwunel_service::uiaa::SESSION_ID_LENGTH; ๐Ÿ”’
use tuwunel_service::users::parse_master_key; ๐Ÿ”’
use crate::Ruma; ๐Ÿ”’
use crate::router::auth_uiaa; ๐Ÿ”’

Structsยง

Keys ๐Ÿ”’
ValidatedKeys ๐Ÿ”’

Functionsยง

check_for_new_keys ๐Ÿ”’
create_oauth_uiaa ๐Ÿ”’
master_key_matches ๐Ÿ”’
Returns true if the user already has a master key matching new_master_key, false if they have no master key. Returns Err on mismatch or any other error.
persist_signing_keys ๐Ÿ”’
upload_signing_keys_route ๐Ÿ”’
POST /_matrix/client/r0/keys/device_signing/upload
validate_key ๐Ÿ”’
validate_keys ๐Ÿ”’