crypto: Add getters for the user and device id in the account.

master
Damir Jelić 2020-07-22 13:40:47 +02:00
parent 7c92d91c04
commit 4fa58bfaac
1 changed files with 10 additions and 0 deletions

View File

@ -93,6 +93,16 @@ impl Account {
}
}
/// Get the user id of the owner of the account.
pub fn user_id(&self) -> &UserId {
&self.user_id
}
/// Get the device id that owns this account.
pub fn device_id(&self) -> &DeviceId {
&self.device_id
}
/// Get the public parts of the identity keys for the account.
pub fn identity_keys(&self) -> &IdentityKeys {
&self.identity_keys