diff --git a/crates/ruma-common/src/encryption.rs b/crates/ruma-common/src/encryption.rs index beb3db96..14b6250e 100644 --- a/crates/ruma-common/src/encryption.rs +++ b/crates/ruma-common/src/encryption.rs @@ -118,7 +118,7 @@ pub enum OneTimeKey { } /// Signatures for a `CrossSigningKey` object. -pub type CrossSigningKeySignatures = BTreeMap, BTreeMap>; +pub type CrossSigningKeySignatures = BTreeMap, BTreeMap, String>>; /// A cross signing key. #[derive(Clone, Debug, Deserialize, Serialize)] @@ -133,7 +133,7 @@ pub struct CrossSigningKey { /// The public key. /// /// The object must have exactly one property. - pub keys: BTreeMap, + pub keys: BTreeMap, String>, /// Signatures of the key. /// @@ -147,7 +147,7 @@ impl CrossSigningKey { pub fn new( user_id: Box, usage: Vec, - keys: BTreeMap, + keys: BTreeMap, String>, signatures: CrossSigningKeySignatures, ) -> Self { Self { user_id, usage, keys, signatures }