async fn handle_new_device_key(
transaction: &mut TransactedDb<'_>,
session: &SessionInfo,
new_keys: &mut DeviceKeys,
) -> Result<(), UserKeysError>Expand description
Handles a new device-keys upload by:
- Checking its correctness using
check_device_key - Check its signature is correct
- Extracts its signature(s)
- Store both the keys and the signatures
This function returns the keymap extracted from the given [DeviceKeys].