pub struct ExportedRoomKey {
    pub algorithm: EventEncryptionAlgorithm,
    pub room_id: OwnedRoomId,
    pub sender_key: Curve25519PublicKey,
    pub session_id: String,
    pub session_key: ExportedSessionKey,
    pub sender_claimed_keys: SigningKeys<DeviceKeyAlgorithm>,
    pub forwarding_curve25519_key_chain: Vec<Curve25519PublicKey>,
}
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: Curve25519PublicKey

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: SigningKeys<DeviceKeyAlgorithm>

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

forwarding_curve25519_key_chain: Vec<Curve25519PublicKey>

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
Serialize this value into the given Serde serializer. Read more
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 doesn’t contain an Ed25519 claimed sender key.

The type returned in the event of a conversion error.

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

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