Changeset View
Changeset View
Standalone View
Standalone View
native/cpp/CommonCpp/NativeModules/CommCoreModule.cpp
Show First 20 Lines • Show All 999 Lines • ▼ Show 20 Lines | return createPromiseAsJSIValue( | ||||
if (this->cryptoModule == nullptr) { | if (this->cryptoModule == nullptr) { | ||||
error = "user has not been initialized"; | error = "user has not been initialized"; | ||||
} else { | } else { | ||||
primaryKeysResult = this->cryptoModule->getIdentityKeys(); | primaryKeysResult = this->cryptoModule->getIdentityKeys(); | ||||
} | } | ||||
try { | try { | ||||
if (!error.size()) { | if (!error.size()) { | ||||
notificationsKeysResult = | notificationsKeysResult = | ||||
NotificationsCryptoModule::getNotificationsIdentityKeys(); | NotificationsCryptoModule::getNotificationsIdentityKeys( | ||||
"Comm"); | |||||
} | } | ||||
} catch (const std::exception &e) { | } catch (const std::exception &e) { | ||||
error = e.what(); | error = e.what(); | ||||
} | } | ||||
std::string notificationsCurve25519Cpp, notificationsEd25519Cpp, | std::string notificationsCurve25519Cpp, notificationsEd25519Cpp, | ||||
blobPayloadCpp, signatureCpp, primaryCurve25519Cpp, | blobPayloadCpp, signatureCpp, primaryCurve25519Cpp, | ||||
primaryEd25519Cpp; | primaryEd25519Cpp; | ||||
▲ Show 20 Lines • Show All 434 Lines • Show Last 20 Lines |