From 7f23cbbeb5c741b4d5be5a62319dd192779a004f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damir=20Jeli=C4=87?= Date: Wed, 19 Aug 2020 14:49:40 +0200 Subject: [PATCH] crypto: Add a TODO about cross signing signatures. --- matrix_sdk_crypto/src/verification/sas/mod.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/matrix_sdk_crypto/src/verification/sas/mod.rs b/matrix_sdk_crypto/src/verification/sas/mod.rs index c876ea8f..c116d5b4 100644 --- a/matrix_sdk_crypto/src/verification/sas/mod.rs +++ b/matrix_sdk_crypto/src/verification/sas/mod.rs @@ -278,6 +278,9 @@ impl Sas { device.set_trust_state(LocalTrust::Verified); self.store.save_devices(&[device]).await?; + // TODO if this is a device from our own user and we have + // the private part of the self signing key, we should sign + // the device and upload the signature. Ok(true) } else { @@ -303,7 +306,7 @@ impl Sas { let device = self.other_device(); info!( - "The device {} {} was deleted while a interactive \ + "The device {} {} was deleted while an interactive \ verification was going on.", device.user_id(), device.device_id()