Struct matrix_sdk_crypto::OwnUserIdentity [−][src]
pub struct OwnUserIdentity { /* fields omitted */ }
Expand description
Struct representing a cross signing identity of a user.
This is the user identity of a user that isn’t our own. Other users will only contain a master key and a self signing key, meaning that only device signatures can be checked with this identity.
This struct wraps a read-only version of the struct and allows verifications to be requested to verify our own device with the user identity.
Implementations
Mark our user identity as verified.
This will mark the identity locally as verified and sign it with our own device.
Returns a signature upload request that needs to be sent out.
pub async fn request_verification(
&self
) -> Result<(VerificationRequest, OutgoingVerificationRequest), CryptoStoreError>
pub async fn request_verification(
&self
) -> Result<(VerificationRequest, OutgoingVerificationRequest), CryptoStoreError>
Send a verification request to our other devices.
pub async fn request_verification_with_methods(
&self,
methods: Vec<VerificationMethod>
) -> Result<(VerificationRequest, OutgoingVerificationRequest), CryptoStoreError>
pub async fn request_verification_with_methods(
&self,
methods: Vec<VerificationMethod>
) -> Result<(VerificationRequest, OutgoingVerificationRequest), CryptoStoreError>
Send a verification request to our other devices while specifying our supported methods.
Arguments
methods
- The verification methods that we’re supporting.
Does our user identity trust our own device, i.e. have we signed our own device keys with our self-signing key.
Methods from Deref<Target = ReadOnlyOwnUserIdentity>
Get the public master key of the identity.
Get the public self-signing key of the identity.
Get the public user-signing key of the identity.
Mark our identity as verified.
Check if our identity is verified.
Trait Implementations
type Target = ReadOnlyOwnUserIdentity
type Target = ReadOnlyOwnUserIdentity
The resulting type after dereferencing.
Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for OwnUserIdentity
impl Send for OwnUserIdentity
impl Sync for OwnUserIdentity
impl Unpin for OwnUserIdentity
impl !UnwindSafe for OwnUserIdentity
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more