Enum matrix_sdk::encryption::verification::SasState
pub enum SasState {
Started {
protocols: SasV1Content,
},
Accepted {
accepted_protocols: AcceptedProtocols,
},
KeysExchanged {
emojis: Option<EmojiShortAuthString>,
decimals: (u16, u16, u16),
},
Confirmed,
Done {
verified_devices: Vec<ReadOnlyDevice>,
verified_identities: Vec<ReadOnlyUserIdentities>,
},
Cancelled(CancelInfo),
}
e2e-encryption
only.Expand description
An Enum describing the state the SAS verification is in.
Variants§
Started
Fields
protocols: SasV1Content
The protocols that were proposed in the m.key.verification.start
event.
The verification has been started, the protocols that should be used have been proposed and can be accepted.
Accepted
Fields
accepted_protocols: AcceptedProtocols
The protocols that were accepted in the m.key.verification.accept
event.
The verification has been accepted and both sides agreed to a set of protocols that will be used for the verification process.
KeysExchanged
Fields
emojis: Option<EmojiShortAuthString>
The emojis that represent the short auth string, will be None
if
the emoji SAS method wasn’t part of the AcceptedProtocols
.
The public keys have been exchanged and the short auth string can be presented to the user.
Confirmed
The verification process has been confirmed from our side, we’re waiting for the other side to confirm as well.
Done
Fields
The verification process has been successfully concluded.
Cancelled(CancelInfo)
The verification process has been cancelled.