pub type DecryptedForwardedRoomKeyEvent = DecryptedOlmV1Event<ForwardedRoomKeyContent>;
Expand description

An m.forwarded_room_key event that was decrypted using the m.olm.v1.curve25519-aes-sha2 algorithm

Aliased Type§

struct DecryptedForwardedRoomKeyEvent {
    pub sender: OwnedUserId,
    pub recipient: OwnedUserId,
    pub keys: OlmV1Keys,
    pub recipient_keys: OlmV1Keys,
    pub content: ForwardedRoomKeyContent,
}

Fields§

§sender: OwnedUserId

The sender of the event, as set by the sender of the event.

§recipient: OwnedUserId

The intended recipient of the event, as set by the sender of the event.

§keys: OlmV1Keys

The sender’s signing keys of the encrypted event.

§recipient_keys: OlmV1Keys

The recipient’s signing keys of the encrypted event.

§content: ForwardedRoomKeyContent

The type of the event.

Implementations§

source§

impl DecryptedForwardedRoomKeyEvent

source

pub fn room_key_info(&self) -> Option<SupportedKeyInfo>

Get the unique info about the room key that is contained in this forwarded room key event.

Returns None if we do not understand the algorithm that was used to encrypt the event.