From cf8f1b0e7e237d0e3b013908afe8873cea2d647c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damir=20Jeli=C4=87?= Date: Wed, 23 Mar 2022 13:46:32 +0100 Subject: [PATCH] common: Use DeviceKeyId in more places for the CrossSigningKey type --- crates/ruma-common/src/encryption.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 }