MCPcopy Create free account
hub / github.com/CommE2E/comm / getAccountDataKey

Function getAccountDataKey

native/cpp/CommonCpp/NativeModules/CommCoreModule.cpp:539–548  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

537}
538
539const std::string
540getAccountDataKey(const std::string secureStoreAccountDataKey) {
541 folly::Optional<std::string> storedSecretKey =
542 CommSecureStore::get(secureStoreAccountDataKey);
543 if (!storedSecretKey.hasValue()) {
544 storedSecretKey = crypto::Tools::generateRandomString(64);
545 CommSecureStore::set(secureStoreAccountDataKey, storedSecretKey.value());
546 }
547 return storedSecretKey.value();
548}
549
550void CommCoreModule::persistCryptoModules(
551 bool persistContentModule,

Callers 3

persistCryptoModulesMethod · 0.85
encryptAndPersistMethod · 0.85
decryptAndPersistMethod · 0.85

Calls 2

getFunction · 0.85
setFunction · 0.85

Tested by

no test coverage detected