Skip to main content Module keys Copy item path Source use std::collections::BTreeMap ; π use std::mem ; π use std::ops::Deref ; π use std::sync::Arc ; π use futures::Stream; π use futures::StreamExt; π use futures::TryFutureExt; π use futures::TryStreamExt; π use futures::future::join; π use futures::future::try_join3; π use futures::pin_mut; π use ruma::AnyKeyName; π use ruma::DeviceId; π use ruma::KeyId; π use ruma::OneTimeKeyAlgorithm; π use ruma::OneTimeKeyId; π use ruma::OneTimeKeyName; π use ruma::OwnedDeviceId; π use ruma::OwnedKeyId; π use ruma::OwnedOneTimeKeyId; π use ruma::OwnedRoomId; π use ruma::OwnedServerName; π use ruma::RoomId; π use ruma::SigningKeyId; π use ruma::UInt; π use ruma::UserId; π use ruma::encryption::CrossSigningKey; π use ruma::encryption::DeviceKeys; π use ruma::encryption::OneTimeKey; π use ruma::serde::Base64; π use ruma::serde::Raw; π use ruma::serde::base64::Standard; π use ruma::signatures::VerificationError; π use ruma::signatures::to_canonical_json_string_for_signing; π use ruma::signatures::verify_canonical_json_bytes; π use serde::Deserialize ; π use serde::Deserialize ; π use serde::Serialize ; π use serde::Serialize ; π use tuwunel_core::Err ; π use tuwunel_core::Error ; π use tuwunel_core::Result ; π use tuwunel_core::debug::INFO_SPAN_LEVEL ; π use tuwunel_core::debug_error ; π use tuwunel_core::debug_warn ; π use tuwunel_core::err ; π use tuwunel_core::implement; π use tuwunel_core::itertools::Itertools; π use tuwunel_core::smallvec::SmallVec; π use tuwunel_core::utils::BoolExt ; π use tuwunel_core::utils::IterStream ; π use tuwunel_core::utils::ReadyExt ; π use tuwunel_core::utils::result::LogErr ; π use tuwunel_core::utils::result::NotFound ; π use tuwunel_core::utils::stream::BroadbandExt ; π use tuwunel_core::utils::stream::TryIgnore ; π use tuwunel_core::utils::to_canonical_object ; π use tuwunel_core::warn ; π use tuwunel_database::Deserialized ; π use tuwunel_database::Ignore ; π use tuwunel_database::Interfix ; π use tuwunel_database::Json ; π use tuwunel_database::Map ; π use tuwunel_database::Txn ; π use tuwunel_database::deserialize_from_slice ; π use tuwunel_database::deserialize_key ; π use tuwunel_database::serialize_key ; π use tuwunel_database::serialize_to_vec ; π use super::device::DeviceLock ; π DeviceListRecord Durable detail for one local userβs device-list notification. FallbackEntry π MSC2732: row stored under (user, device, algorithm) in
userdeviceidalgorithm_fallback. Fallback keys are not deleted on
claim; the row is rewritten with used = true. DeviceListChange Mutation announced to clients and federation peers. DeviceListChangeKind π KeyRole π SignatureAction π SignatureWrite π canonical_key π clean_signatures π Ensure that a user only sees signatures from themselves and the target user complete_one_time_key_counts π Keep zero-count algorithms visible to clients after an OTK pool is drained. insert_signatures π key_matches_role π key_role π parse_cross_signing_key π Parses a cross-signing key a client or a server sent. parse_master_key Parses a master key, refusing a key carrying no public key or several. pointer_matches π replace_signatures π signature_action π signatures_map π single_public_key π Returns the one public key of a cross-signing key, which names its row. verify_signature π with_our_signatures π Adds our copyβs signatures to a remote key. KeyLocks π OtkRowKey π Row-key shape of onetimekeyid4225_otk: per-device pool keyed by
upload-order count for MSC4225 ordering. ParsedKey π ParsedKeys π Servers π Signatures π