Update m.key.verification.mac to work without ruma-signatures.
This commit is contained in:
parent
d5b38354d0
commit
30c58ab563
@ -7,7 +7,7 @@ use serde::{Deserialize, Serialize};
|
||||
pub mod accept;
|
||||
pub mod cancel;
|
||||
pub mod key;
|
||||
// pub mod mac;
|
||||
pub mod mac;
|
||||
pub mod request;
|
||||
pub mod start;
|
||||
|
||||
|
@ -1,7 +1,8 @@
|
||||
//! Types for the *m.key.verification.mac* event.
|
||||
|
||||
use std::collections::HashMap;
|
||||
|
||||
use ruma_events_macros::ruma_event;
|
||||
use ruma_signatures::SignatureSet;
|
||||
|
||||
ruma_event! {
|
||||
/// Sends the MAC of a device's key to the partner device.
|
||||
@ -19,7 +20,7 @@ ruma_event! {
|
||||
/// A map of the key ID to the MAC of the key, using the algorithm in the verification process.
|
||||
///
|
||||
/// The MAC is encoded as unpadded Base64.
|
||||
pub mac: SignatureSet,
|
||||
pub mac: HashMap<String, String>,
|
||||
|
||||
/// The MAC of the comma-separated, sorted, list of key IDs given in the `mac` property, encoded
|
||||
/// as unpadded Base64.
|
||||
|
Loading…
x
Reference in New Issue
Block a user