1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
//! Types for the *m.key.verification.mac* event. use std::collections::BTreeMap; use ruma_events_macros::ruma_event; ruma_event! { /// Sends the MAC of a device's key to the partner device. /// /// Typically sent as a to-device event. MacEvent { kind: Event, event_type: "m.key.verification.mac", content: { /// An opaque identifier for the verification process. /// /// Must be the same as the one used for the *m.key.verification.start* message. pub transaction_id: String, /// 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: BTreeMap<String, String>, /// The MAC of the comma-separated, sorted, list of key IDs given in the `mac` property, encoded /// as unpadded Base64. pub keys: String, }, } }