pub struct KeyDistributionTestData {}
Expand description
This set of keys/query response was generated using a local synapse. Each users was created, device added according to needs and the payload of the keys query have been copy/pasted here.
The current user is @me:localhost
, the private part of the
cross-signing keys have been exported using the console with the
following snippet: await mxMatrixClientPeg.get().getCrypto(). olmMachine.exportCrossSigningKeys()
.
They are imported in the test here in order to verify user signatures.
-
@me:localhost
is the current user mxId. -
@dan:localhost
is a user with cross-signing enabled, with 2 devices. One device (JHPUERYQUW
) is self signed by @dan, but not the other one (FRGNMZVOKA
).@me
has verified@dan
, can be seen because@dan
master key has a signature by@me
ssk -
@dave
is a user that has not enabled cross-signing. And has one device (HVCXJTHMBM
). -
@good
is a user with cross-signing enabled, with 2 devices. The 2 devices are properly signed by@good
(i.e were self-verified by @good)
Implementations§
Source§impl KeyDistributionTestData
impl KeyDistributionTestData
pub const MASTER_KEY_PRIVATE_EXPORT: &'static str = "9kquJqAtEUoTXljh5W2QSsCm4FH9WvWzIkDkIMUsM2k"
pub const SELF_SIGNING_KEY_PRIVATE_EXPORT: &'static str = "QifnGfudByh/GpBgJYEMzq7/DGbp6fZjp58faQj3n1M"
pub const USER_SIGNING_KEY_PRIVATE_EXPORT: &'static str = "zQSosK46giUFs2ACsaf32bA7drcIXbmViyEt+TLfloI"
Sourcepub fn me_keys_query_response() -> KeyQueryResponse
pub fn me_keys_query_response() -> KeyQueryResponse
Current user keys query response containing the cross-signing keys
Sourcepub fn dan_keys_query_response() -> KeyQueryResponse
pub fn dan_keys_query_response() -> KeyQueryResponse
Dan has cross-signing setup, one device is cross signed JHPUERYQUW
,
but not the other one FRGNMZVOKA
.
@dan
identity is signed by @me
identity (alice trust dan)
Sourcepub fn dan_keys_query_response_device_loggedout() -> KeyQueryResponse
pub fn dan_keys_query_response_device_loggedout() -> KeyQueryResponse
Same as dan_keys_query_response
but FRGNMZVOKA
was removed.
Sourcepub fn dave_keys_query_response() -> KeyQueryResponse
pub fn dave_keys_query_response() -> KeyQueryResponse
Dave is a user that has not enabled cross-signing
Sourcepub fn good_keys_query_response() -> KeyQueryResponse
pub fn good_keys_query_response() -> KeyQueryResponse
Good is a user that has all his devices correctly cross-signed
pub fn me_id() -> &'static UserId
pub fn me_device_id() -> &'static DeviceId
pub fn dan_unsigned_device_id() -> &'static DeviceId
pub fn dan_signed_device_id() -> &'static DeviceId
pub fn dave_device_id() -> &'static DeviceId
pub fn dan_id() -> &'static UserId
pub fn dave_id() -> &'static UserId
pub fn good_id() -> &'static UserId
Auto Trait Implementations§
impl Freeze for KeyDistributionTestData
impl RefUnwindSafe for KeyDistributionTestData
impl Send for KeyDistributionTestData
impl Sync for KeyDistributionTestData
impl Unpin for KeyDistributionTestData
impl UnwindSafe for KeyDistributionTestData
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CompatExt for T
impl<T> CompatExt for T
Source§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
Source§fn consume_handle(handle: Handle) -> Arc<T>
fn consume_handle(handle: Handle) -> Arc<T>
Arc<>