pub struct KeyDistributionTestData {}Expand description
This set of keys/query response was generated using a local synapse.
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:localhostis the current user mxId. -
@dan:localhostis a user with cross-signing enabled, with 2 devices. One device (JHPUERYQUW) is self signed by @dan, but not the other one (FRGNMZVOKA).@mehas verified@dan, can be seen because@danmaster key has a signature by@messk -
@daveis a user that has not enabled cross-signing. And has one device (HVCXJTHMBM). -
@goodis 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_private_user_signing_key() -> Ed25519SecretKey
pub fn me_private_user_signing_key() -> Ed25519SecretKey
Current user’s private user-signing key, as an Ed25519SecretKey.
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 set up; one device is cross-signed (JHPUERYQUW),
but not the other one (FRGNMZVOKA).
@dan’s identity is signed by @me’s identity (Alice trusts 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