Struct matrix_sdk_crypto::olm::ExportedRoomKey [−][src]
pub struct ExportedRoomKey {
pub algorithm: EventEncryptionAlgorithm,
pub room_id: RoomId,
pub sender_key: String,
pub session_id: String,
pub session_key: ExportedGroupSessionKey,
pub sender_claimed_keys: BTreeMap<DeviceKeyAlgorithm, String>,
pub forwarding_curve25519_key_chain: Vec<String>,
}Expand description
An exported version of a InboundGroupSession
This can be used to share the InboundGroupSession in an exported file.
Fields
algorithm: EventEncryptionAlgorithmThe encryption algorithm that the session uses.
room_id: RoomIdThe room where the session is used.
sender_key: StringThe Curve25519 key of the device which initiated the session originally.
session_id: StringThe ID of the session that the key is for.
session_key: ExportedGroupSessionKeyThe key for the session.
sender_claimed_keys: BTreeMap<DeviceKeyAlgorithm, String>The Ed25519 key of the device which initiated the session originally.
forwarding_curve25519_key_chain: Vec<String>Chain of Curve25519 keys through which this session was forwarded, via m.forwarded_room_key events.
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
type Error = OlmGroupSessionError
type Error = OlmGroupSessionError
The type returned in the event of a conversion error.
Performs the conversion.
Convert an exported room key into a content for a forwarded room key event.
This will fail if the exported room key has multiple sender claimed keys
or if the algorithm of the claimed sender key isn’t
DeviceKeyAlgorithm::Ed25519.
Auto Trait Implementations
impl RefUnwindSafe for ExportedRoomKey
impl Send for ExportedRoomKey
impl Sync for ExportedRoomKey
impl Unpin for ExportedRoomKey
impl UnwindSafe for ExportedRoomKey
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more