Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3380747
D6778.id23310.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D6778.id23310.diff
View Options
diff --git a/native/cpp/CommonCpp/Notifications/BackgroundDataStorage/NotificationsCryptoModule.cpp b/native/cpp/CommonCpp/Notifications/BackgroundDataStorage/NotificationsCryptoModule.cpp
--- a/native/cpp/CommonCpp/Notifications/BackgroundDataStorage/NotificationsCryptoModule.cpp
+++ b/native/cpp/CommonCpp/Notifications/BackgroundDataStorage/NotificationsCryptoModule.cpp
@@ -154,4 +154,22 @@
picklingKey,
callingProcessName);
}
+
+std::string NotificationsCryptoModule::getNotificationsIdentityKeys() {
+ CommSecureStore secureStore{};
+ folly::Optional<std::string> picklingKey = secureStore.get(
+ NotificationsCryptoModule::secureStoreNotificationsAccountDataKey);
+ if (!picklingKey.hasValue()) {
+ throw std::runtime_error(
+ "Attempt to retrieve notifications crypto account before it was "
+ "correctly initialized.");
+ }
+
+ const std::string path =
+ PlatformSpecificTools::getNotificationsCryptoAccountPath();
+ crypto::CryptoModule cryptoModule =
+ NotificationsCryptoModule::deserializeCryptoModule(
+ path, picklingKey.value());
+ return cryptoModule.getIdentityKeys();
+}
} // namespace comm
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Nov 29, 1:53 AM (21 h, 12 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2595190
Default Alt Text
D6778.id23310.diff (1 KB)
Attached To
Mode
D6778: Implement public method to retrieve notifications olm account public keys
Attached
Detach File
Event Timeline
Log In to Comment