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

Method generateAndGetPrekey

native/cpp/CommonCpp/CryptoTools/CryptoModule.cpp:193–201  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

191}
192
193std::string CryptoModule::generateAndGetPrekey() {
194 try {
195 this->vodozemacAccount->generate_prekey();
196 return std::string(this->vodozemacAccount->prekey());
197 } catch (const std::exception &e) {
198 throw std::runtime_error(
199 "error generateAndGetPrekey => " + std::string(e.what()));
200 }
201}
202
203void CryptoModule::markPrekeyAsPublished() {
204 this->vodozemacAccount->mark_prekey_as_published();

Callers 1

validatePrekeyMethod · 0.95

Calls 2

generate_prekeyMethod · 0.45
prekeyMethod · 0.45

Tested by

no test coverage detected