pub struct ExportedRoomKey {
    pub algorithm: EventEncryptionAlgorithm,
    pub room_id: OwnedRoomId,
    pub sender_key: String,
    pub session_id: String,
    pub session_key: ExportedSessionKey,
    pub sender_claimed_keys: BTreeMap<DeviceKeyAlgorithm, String>,
    pub forwarding_curve25519_key_chain: Vec<String>,
}
Expand description

An exported version of an InboundGroupSession

This can be used to share the InboundGroupSession in an exported file.

Fields

algorithm: EventEncryptionAlgorithm

The encryption algorithm that the session uses.

room_id: OwnedRoomId

The room where the session is used.

sender_key: String

The Curve25519 key of the device which initiated the session originally.

session_id: String

The ID of the session that the key is for.

session_key: ExportedSessionKey

The 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

Deserialize this value from the given Serde deserializer. Read more

Converts to this type from the input type.

Serialize this value into the given Serde serializer. Read more

Convert the content of a forwarded room key into a exported room key.

The type returned in the event of a conversion error.

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.

The type returned in the event of a conversion error.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more